docs: Reduce redundancy
authorMatthias Clasen <mclasen@redhat.com>
Fri, 21 May 2021 00:45:06 +0000 (20:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 May 2021 00:45:06 +0000 (20:45 -0400)
Remove a boatload of "or %NULL" from nullable parameters
and return values. gi-docgen generates suitable text from
the annotation that we don't need to duplicate.

This adds a few missing nullable annotations too.

146 files changed:
gdk/gdkapplaunchcontext.c
gdk/gdkclipboard.c
gdk/gdkcontentformats.c
gdk/gdkcontentprovider.c
gdk/gdkcursor.c
gdk/gdkdevice.c
gdk/gdkdrag.c
gdk/gdkdrawcontext.c
gdk/gdkdrop.c
gdk/gdkevents.c
gdk/gdkglcontext.c
gdk/gdkmonitor.c
gdk/gdkpixbuf-drawable.c
gdk/gdkrectangle.c
gdk/gdksurface.c
gdk/gdktexture.c
gdk/wayland/gdkdisplay-wayland.c
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkvisual-x11.c
gsk/gskglshader.c
gsk/gskrendernode.c
gsk/gsktransform.c
gsk/ngl/gskngldriver.c
gtk/css/gtkcssdataurl.c
gtk/css/gtkcssparser.c
gtk/gtkappchooserdialog.c
gtk/gtkapplicationwindow.c
gtk/gtkassistant.c
gtk/gtkbox.c
gtk/gtkbuildable.c
gtk/gtkbuilder.c
gtk/gtkbuilderparser.c
gtk/gtkbuilderscope.c
gtk/gtkbutton.c
gtk/gtkcellarea.c
gtk/gtkcellareacontext.c
gtk/gtkcelllayout.c
gtk/gtkcellrenderer.c
gtk/gtkcellview.c
gtk/gtkcenterbox.c
gtk/gtkcolorchooser.c
gtk/gtkcolorchooserdialog.c
gtk/gtkcolumnview.c
gtk/gtkcolumnviewcolumn.c
gtk/gtkcombobox.c
gtk/gtkcomboboxtext.c
gtk/gtkcsslookup.c
gtk/gtkcustompaperunixdialog.c
gtk/gtkdialog.c
gtk/gtkdragicon.c
gtk/gtkdragsource.c
gtk/gtkdropcontrollermotion.c
gtk/gtkdropdown.c
gtk/gtkeditable.c
gtk/gtkentry.c
gtk/gtkentrybuffer.c
gtk/gtkentrycompletion.c
gtk/gtkexpander.c
gtk/gtkfilechooser.c
gtk/gtkfilechooserdialog.c
gtk/gtkfilechooserentry.c
gtk/gtkfilechoosernative.c
gtk/gtkfilefilter.c
gtk/gtkfilesystemmodel.c
gtk/gtkfilterlistmodel.c
gtk/gtkfixed.c
gtk/gtkflattenlistmodel.c
gtk/gtkfontchooser.c
gtk/gtkfontchooserdialog.c
gtk/gtkframe.c
gtk/gtkgesture.c
gtk/gtkglarea.c
gtk/gtkgrid.c
gtk/gtkgridview.c
gtk/gtkheaderbar.c
gtk/gtkicontheme.c
gtk/gtkiconview.c
gtk/gtkimage.c
gtk/gtkinfobar.c
gtk/gtklabel.c
gtk/gtklistbox.c
gtk/gtkliststore.c
gtk/gtklistview.c
gtk/gtklockbutton.c
gtk/gtkmain.c
gtk/gtkmaplistmodel.c
gtk/gtkmediacontrols.c
gtk/gtkmediafile.c
gtk/gtkmenubutton.c
gtk/gtkmessagedialog.c
gtk/gtkmountoperation.c
gtk/gtkmultiselection.c
gtk/gtknativedialog.c
gtk/gtknoselection.c
gtk/gtknotebook.c
gtk/gtknumericsorter.c
gtk/gtkpagesetup.c
gtk/gtkpagesetupunixdialog.c
gtk/gtkpango.c
gtk/gtkpapersize.c
gtk/gtkpicture.c
gtk/gtkpopovermenu.c
gtk/gtkpopovermenubar.c
gtk/gtkprintjob.c
gtk/gtkprintoperation-unix.c
gtk/gtkprintoperation.c
gtk/gtkprintsettings.c
gtk/gtkprintunixdialog.c
gtk/gtkprogressbar.c
gtk/gtkrecentmanager.c
gtk/gtkroot.c
gtk/gtkscale.c
gtk/gtkselectionfiltermodel.c
gtk/gtkshortcuttrigger.c
gtk/gtksingleselection.c
gtk/gtksizerequest.c
gtk/gtkslicelistmodel.c
gtk/gtksortlistmodel.c
gtk/gtkspinbutton.c
gtk/gtkstack.c
gtk/gtkstackswitcher.c
gtk/gtkstringsorter.c
gtk/gtkstyleproperty.c
gtk/gtktext.c
gtk/gtktextbuffer.c
gtk/gtktextiter.c
gtk/gtktextlayout.c
gtk/gtktextmark.c
gtk/gtktexttag.c
gtk/gtktexttagtable.c
gtk/gtktextview.c
gtk/gtktooltip.c
gtk/gtktreednd.c
gtk/gtktreeexpander.c
gtk/gtktreelistrowsorter.c
gtk/gtktreemodel.c
gtk/gtktreemodelfilter.c
gtk/gtktreemodelsort.c
gtk/gtktreeselection.c
gtk/gtktreesortable.c
gtk/gtktreestore.c
gtk/gtktreeview.c
gtk/gtktreeviewcolumn.c
gtk/gtkwidget.c
gtk/gtkwidgetpaintable.c
gtk/gtkwindow.c

index 86739dd0eccf19d7c028aa47a9b8a1949692069d..b842026a74430772884a0711697fbd3c692fc11d 100644 (file)
@@ -237,7 +237,7 @@ gdk_app_launch_context_set_timestamp (GdkAppLaunchContext *context,
 /**
  * gdk_app_launch_context_set_icon:
  * @context: a `GdkAppLaunchContext`
- * @icon: (nullable): a #GIcon, or %NULL
+ * @icon: (nullable): a #GIcon
  *
  * Sets the icon for applications that are launched with this
  * context.
@@ -267,7 +267,7 @@ gdk_app_launch_context_set_icon (GdkAppLaunchContext *context,
 /**
  * gdk_app_launch_context_set_icon_name:
  * @context: a `GdkAppLaunchContext`
- * @icon_name: (nullable): an icon name, or %NULL
+ * @icon_name: (nullable): an icon name
  *
  * Sets the icon for applications that are launched with this context.
  *
index fc507358f32f5deed271c7cdd5e1d98ad4e0f9fc..1f97994fd51a706c0daa1ba22d6ca40e0c51011f 100644 (file)
@@ -574,7 +574,7 @@ gdk_clipboard_store_async (GdkClipboard        *clipboard,
  * gdk_clipboard_store_finish:
  * @clipboard: a `GdkClipboard`
  * @result: a `GAsyncResult`
- * @error: a `GError` location to store the error occurring, or %NULL to ignore.
+ * @error: a `GError` location to store the error occurring
  *
  * Finishes an asynchronous clipboard store.
  *
@@ -684,7 +684,7 @@ gdk_clipboard_read_async (GdkClipboard        *clipboard,
  *
  * See [method@Gdk.Clipboard.read_async].
  *
- * Returns: (transfer full) (nullable): a `GInputStream` or %NULL on error
+ * Returns: (transfer full) (nullable): a `GInputStream`
  */
 GInputStream *
 gdk_clipboard_read_finish (GdkClipboard  *clipboard,
@@ -872,7 +872,7 @@ gdk_clipboard_read_value_async (GdkClipboard        *clipboard,
  * gdk_clipboard_read_value_finish:
  * @clipboard: a `GdkClipboard`
  * @result: a `GAsyncResult`
- * @error: a GError` location to store the error occurring, or %NULL to ignore
+ * @error: a GError` location to store the error occurring
  *
  * Finishes an asynchronous clipboard read.
  *
@@ -931,13 +931,13 @@ gdk_clipboard_read_texture_async (GdkClipboard        *clipboard,
  * gdk_clipboard_read_texture_finish:
  * @clipboard: a `GdkClipboard`
  * @result: a `GAsyncResult`
- * @error: a `GError` location to store the error occurring, or %NULL to ignore
+ * @error: a `GError` location to store the error occurring
  *
  * Finishes an asynchronous clipboard read.
  *
  * See [method@Gdk.Clipboard.read_texture_async].
  *
- * Returns: (transfer full) (nullable): a new `GdkTexture` or %NULL on error
+ * Returns: (transfer full) (nullable): a new `GdkTexture`
  */
 GdkTexture *
 gdk_clipboard_read_texture_finish (GdkClipboard  *clipboard,
@@ -996,13 +996,13 @@ gdk_clipboard_read_text_async (GdkClipboard        *clipboard,
  * gdk_clipboard_read_text_finish:
  * @clipboard: a `GdkClipboard`
  * @result: a `GAsyncResult`
- * @error: a `GError` location to store the error occurring, or %NULL to ignore
+ * @error: a `GError` location to store the error occurring
  *
  * Finishes an asynchronous clipboard read.
  *
  * See [method@Gdk.Clipboard.read_text_async].
  *
- * Returns: (transfer full) (nullable): a new string or %NULL on error
+ * Returns: (transfer full) (nullable): a new string
  */
 char *
 gdk_clipboard_read_text_finish (GdkClipboard  *clipboard,
index d4dae7bbb544834a9850b060bccf0d057c212f9b..d7bc490465122ba94262280b3e6d809a0100e660 100644 (file)
@@ -384,7 +384,7 @@ gdk_content_formats_match_gtype (const GdkContentFormats *first,
  *
  * If no matching mime type is found, %NULL is returned.
  *
- * Returns: (nullable): The first common mime type or %NULL if none.
+ * Returns: (nullable): The first common mime type or %NULL if none
  */
 const char *
 gdk_content_formats_match_mime_type (const GdkContentFormats *first,
index 73e0951b2ec322a26f30dad206c1fa5950073a9e..af96695c84107de14d45bc09d90abeaf16e5a5b7 100644 (file)
@@ -319,7 +319,7 @@ gdk_content_provider_write_mime_type_async (GdkContentProvider  *provider,
  * gdk_content_provider_write_mime_type_finish:
  * @provider: a `GdkContentProvider`
  * @result: a `GAsyncResult`
- * @error: a `GError` location to store the error occurring, or %NULL to ignore
+ * @error: a `GError` location to store the error occurring
  *
  * Finishes an asynchronous write operation.
  *
@@ -343,7 +343,7 @@ gdk_content_provider_write_mime_type_finish (GdkContentProvider  *provider,
  * gdk_content_provider_get_value:
  * @provider: a `GdkContentProvider`
  * @value: the `GValue` to fill
- * @error: a `GError` location to store the error occurring, or %NULL to ignore
+ * @error: a `GError` location to store the error occurring
  *
  * Gets the contents of @provider stored in @value.
  *
index 62ba4143c9f32a6f7fb37812193c8bd907ca001e..105009ce825bab3a3c86b86ee8fc565423064aef 100644 (file)
@@ -379,7 +379,7 @@ gdk_cursor_new_from_texture (GdkTexture *texture,
  * it is used on does not support textured cursors.
  *
  * Returns: (transfer none) (nullable): the fallback of the cursor or %NULL
- *  to use the default cursor as fallback.
+ *   to use the default cursor as fallback
  */
 GdkCursor *
 gdk_cursor_get_fallback (GdkCursor *cursor)
index 21854d46b551b6c708e022ae9512d23aeae9c815..f3e754ee032e869a9c30472cac80751697078def 100644 (file)
@@ -1145,7 +1145,7 @@ _gdk_device_surface_at_position (GdkDevice       *device,
  *  }
  * ```
  *
- * Returns: (nullable): the vendor ID, or %NULL
+ * Returns: (nullable): the vendor ID
  */
 const char *
 gdk_device_get_vendor_id (GdkDevice *device)
@@ -1164,7 +1164,7 @@ gdk_device_get_vendor_id (GdkDevice *device)
  * This ID is retrieved from the device, and does not change.
  * See [method@Gdk.Device.get_vendor_id] for more information.
  *
- * Returns: (nullable): the product ID, or %NULL
+ * Returns: (nullable): the product ID
  */
 const char *
 gdk_device_get_product_id (GdkDevice *device)
@@ -1239,7 +1239,7 @@ gdk_device_get_num_touches (GdkDevice *device)
  *
  * Retrieves the current tool for @device.
  *
- * Returns: (transfer none): the `GdkDeviceTool`, or %NULL
+ * Returns: (transfer none): the `GdkDeviceTool`
  */
 GdkDeviceTool *
 gdk_device_get_device_tool (GdkDevice *device)
index 24b66b8726385964105beb3994159bd9fad3412c..1f8abf8749375ec4f396270ea005c2a21e2da64b 100644 (file)
@@ -692,7 +692,7 @@ gdk_drag_set_selected_action (GdkDrag       *drag,
  * drag operation. The surface is owned by @drag and will be destroyed
  * when the drag operation is over.
  *
- * Returns: (nullable) (transfer none): the drag surface, or %NULL
+ * Returns: (nullable) (transfer none): the drag surface
  */
 GdkSurface *
 gdk_drag_get_drag_surface (GdkDrag *drag)
index 60cc894f7545cc8728642419e070ff2c48c5d7d4..a0942add71ce9d4163a30e362b5ff77afa19cd1a 100644 (file)
@@ -219,7 +219,7 @@ gdk_draw_context_surface_resized (GdkDrawContext *context)
  *
  * Retrieves the `GdkDisplay` the @context is created for
  *
- * Returns: (nullable) (transfer none): a `GdkDisplay` or %NULL
+ * Returns: (nullable) (transfer none): the `GdkDisplay`
  */
 GdkDisplay *
 gdk_draw_context_get_display (GdkDrawContext *context)
@@ -237,7 +237,7 @@ gdk_draw_context_get_display (GdkDrawContext *context)
  *
  * Retrieves the surface that @context is bound to.
  *
- * Returns: (nullable) (transfer none): a #GdkSurface or %NULL
+ * Returns: (nullable) (transfer none): the #GdkSurface
  */
 GdkSurface *
 gdk_draw_context_get_surface (GdkDrawContext *context)
index 75ed6beeb217e406e7320da3134e3c0c2e6ac702..0825df69d264abb3d30f8b186e4e32c318afc88a 100644 (file)
@@ -694,7 +694,7 @@ gdk_drop_read_async (GdkDrop             *self,
  * @self: a `GdkDrop`
  * @result: a `GAsyncResult`
  * @out_mime_type: (out) (type utf8): return location for the used mime type
- * @error: (nullable): location to store error information on failure, or %NULL
+ * @error: (nullable): location to store error information on failure
  *
  * Finishes an async drop read operation.
  *
@@ -705,7 +705,7 @@ gdk_drop_read_async (GdkDrop             *self,
  *
  * See [method@Gdk.Drop.read_async].
  *
- * Returns: (nullable) (transfer full): the `GInputStream`, or %NULL
+ * Returns: (nullable) (transfer full): the `GInputStream`
  */
 GInputStream *
 gdk_drop_read_finish (GdkDrop       *self,
@@ -891,7 +891,7 @@ gdk_drop_read_value_async (GdkDrop             *self,
  * gdk_drop_read_value_finish:
  * @self: a `GdkDrop`
  * @result: a `GAsyncResult`
- * @error: a `GError` location to store the error occurring, or %NULL to ignore
+ * @error: a `GError` location to store the error occurring
  *
  * Finishes an async drop read.
  *
index 43e9c9f01a8d9c50515cdb936a75eed641691ded..4775c956357af799d8c054f6ce1d15e064f4d781 100644 (file)
@@ -574,9 +574,8 @@ _gdk_event_queue_remove_link (GdkDisplay *display,
  * Removes and returns the first event from the event
  * queue that is not still being filled in.
  *
- * Returns: (nullable): the event, or %NULL. Ownership is transferred
- * to the caller.
- **/
+ * Returns: (nullable) (transfer full): the event
+ */
 GdkEvent*
 _gdk_event_unqueue (GdkDisplay *display)
 {
@@ -1238,8 +1237,8 @@ gdk_event_get_device (GdkEvent *event)
  * the application lifetime, if settings must be stored
  * persistently across runs, see [method@Gdk.DeviceTool.get_serial].
  *
- * Returns: (transfer none) (nullable): The current device tool, or %NULL
- **/
+ * Returns: (transfer none) (nullable): The current device tool
+ */
 GdkDeviceTool *
 gdk_event_get_device_tool (GdkEvent *event)
 {
index 7c3c0a0a7904e8a7f049f2bee55fc9d0f60b0716..a82c7e3bc4c756900e7550b7a45c74354eede48a 100644 (file)
@@ -1127,7 +1127,7 @@ gdk_gl_context_make_current (GdkGLContext *context)
  *
  * Retrieves the display the @context is created for
  *
- * Returns: (nullable) (transfer none): a `GdkDisplay` or %NULL
+ * Returns: (nullable) (transfer none): a `GdkDisplay`
  */
 GdkDisplay *
 gdk_gl_context_get_display (GdkGLContext *context)
@@ -1143,7 +1143,7 @@ gdk_gl_context_get_display (GdkGLContext *context)
  *
  * Retrieves the surface used by the @context.
  *
- * Returns: (nullable) (transfer none): a `GdkSurface` or %NULL
+ * Returns: (nullable) (transfer none): a `GdkSurface`
  */
 GdkSurface *
 gdk_gl_context_get_surface (GdkGLContext *context)
@@ -1159,7 +1159,7 @@ gdk_gl_context_get_surface (GdkGLContext *context)
  *
  * Retrieves the `GdkGLContext` that this @context share data with.
  *
- * Returns: (nullable) (transfer none): a `GdkGLContext` or %NULL
+ * Returns: (nullable) (transfer none): a `GdkGLContext`
  */
 GdkGLContext *
 gdk_gl_context_get_shared_context (GdkGLContext *context)
@@ -1223,7 +1223,7 @@ gdk_gl_context_clear_current (void)
  *
  * Retrieves the current `GdkGLContext`.
  *
- * Returns: (nullable) (transfer none): the current `GdkGLContext`, or %NULL
+ * Returns: (nullable) (transfer none): the current `GdkGLContext`
  */
 GdkGLContext *
 gdk_gl_context_get_current (void)
index b1aafd5756a9e45efd239c92cfd6f6c49d322e95..47ebb3c51993cf1cea16a4b7ae1fa197766c34fb 100644 (file)
@@ -421,8 +421,7 @@ gdk_monitor_get_connector (GdkMonitor *monitor)
  * The PNP ID registry is located at
  * [https://uefi.org/pnp_id_list](https://uefi.org/pnp_id_list).
  *
- * Returns: (transfer none) (nullable): the name of the manufacturer,
- *   or %NULL
+ * Returns: (transfer none) (nullable): the name of the manufacturer
  */
 const char *
 gdk_monitor_get_manufacturer (GdkMonitor *monitor)
@@ -438,7 +437,7 @@ gdk_monitor_get_manufacturer (GdkMonitor *monitor)
  *
  * Gets the string identifying the monitor model, if available.
  *
- * Returns: (transfer none) (nullable): the monitor model, or %NULL
+ * Returns: (transfer none) (nullable): the monitor model
  */
 const char *
 gdk_monitor_get_model (GdkMonitor *monitor)
index ca016c1228af75f4cbcad3646fba2060be14b2a4..a337d798fe18989d1fa8caae212e0af7a0eba010 100644 (file)
@@ -225,8 +225,7 @@ gdk_pixbuf_get_from_surface (cairo_surface_t *surface,
  * stages will almost certainly convert the pixbuf back into a texture
  * to draw it on screen.
  *
- * Returns: (transfer full) (nullable): a new #GdkPixbuf or %NULL
- *   in case of an error
+ * Returns: (transfer full) (nullable): a new #GdkPixbuf
  */
 GdkPixbuf *
 gdk_pixbuf_get_from_texture (GdkTexture *texture)
index b43323565514f98ee6037f387485f37ed692ab8e..f2c3b3d60507e9e65e9887806f8eab05e5f7149a 100644 (file)
@@ -92,7 +92,7 @@ gdk_rectangle_union (const GdkRectangle *src1,
  * @src1: a `GdkRectangle`
  * @src2: a `GdkRectangle`
  * @dest: (out caller-allocates) (optional): return location for the
- *   intersection of @src1 and @src2, or %NULL
+ *   intersection of @src1 and @src2
  *
  * Calculates the intersection of two rectangles.
  *
index d71773032afd3f4c1b7e2627286c50030626678b..395516102bd49818009838cd376ee60dfd56bc9c 100644 (file)
@@ -1164,8 +1164,7 @@ gdk_surface_get_paint_gl_context (GdkSurface  *surface,
  * Before using the returned `GdkGLContext`, you will need to
  * call [method@Gdk.GLContext.make_current] or [method@Gdk.GLContext.realize].
  *
- * Returns: (transfer full): the newly created `GdkGLContext`,
- *   or %NULL on error
+ * Returns: (transfer full) (nullable): the newly created `GdkGLContext`
  */
 GdkGLContext *
 gdk_surface_create_gl_context (GdkSurface   *surface,
@@ -1696,9 +1695,9 @@ gdk_surface_constrain_size (GdkGeometry    *geometry,
  * gdk_surface_get_device_position:
  * @surface: a `GdkSurface`
  * @device: pointer `GdkDevice` to query to
- * @x: (out) (optional): return locatio for the X coordinate of @device, or %NULL
- * @y: (out) (optional): return location for the Y coordinate of @device, or %NULL
- * @mask: (out) (optional): return location for the modifier mask, or %NULL
+ * @x: (out) (optional): return locatio for the X coordinate of @device
+ * @y: (out) (optional): return location for the Y coordinate of @device
+ * @mask: (out) (optional): return location for the modifier mask
  *
  * Obtains the current device position and modifier state.
  *
@@ -1839,10 +1838,9 @@ gdk_surface_set_cursor_internal (GdkSurface *surface,
  * If the return value is %NULL then there is no custom cursor set on
  * the surface, and it is using the cursor for its parent surface.
  *
- * Returns: (nullable) (transfer none): a `GdkCursor`, or %NULL. The
- *   returned object is owned by the `GdkSurface` and should not be
- *   unreferenced directly. Use [method@Gdk.Surface.set_cursor] to
- *   unset the cursor of the surface
+ * Use [method@Gdk.Surface.set_cursor] to unset the cursor of the surface.
+ *
+ * Returns: (nullable) (transfer none): a `GdkCursor`
  */
 GdkCursor *
 gdk_surface_get_cursor (GdkSurface *surface)
@@ -1920,10 +1918,9 @@ gdk_surface_set_cursor (GdkSurface *surface,
  * If the return value is %NULL then there is no custom cursor set on the
  * specified surface, and it is using the cursor for its parent surface.
  *
- * Returns: (nullable) (transfer none): a `GdkCursor`, or %NULL. The
- *   returned object is owned by the `GdkSurface` and should not be
- *   unreferenced directly. Use [method@Gdk.Surface.set_cursor] to unset
- *   the cursor of the surface
+ * Use [method@Gdk.Surface.set_cursor] to unset the cursor of the surface.
+ *
+ * Returns: (nullable) (transfer none): a `GdkCursor`
  */
 GdkCursor *
 gdk_surface_get_device_cursor (GdkSurface *surface,
@@ -2415,8 +2412,7 @@ gdk_surface_destroy_notify (GdkSurface *surface)
  * the source if [method@Gdk.Drag.get_selected_action] returns
  * %GDK_ACTION_MOVE.
  *
- * Returns: (transfer full) (nullable): a newly created [class@Gdk.Drag]
- *   or %NULL on error
+ * Returns: (transfer full) (nullable): a newly created `GdkDrag`
  */
 GdkDrag *
 gdk_drag_begin (GdkSurface          *surface,
@@ -2624,7 +2620,8 @@ gdk_surface_get_scale_factor (GdkSurface *surface)
 /**
  * gdk_surface_set_opaque_region:
  * @surface: a top-level `GdkSurface`
- * @region: (nullable):  a region, or %NULL
+ * @region: (nullable): a region, or %NULL to make the entire
+ *   surface opaque
  *
  * Marks a region of the `GdkSurface` as opaque.
  *
index c7da7d66dd8d254efd909b1768ca8d1e14689ac7..0332fca146fce97264a93529a34285bdb612e653 100644 (file)
@@ -353,7 +353,7 @@ gdk_texture_new_from_resource (const char *resource_path)
  *
  * If %NULL is returned, then @error will be set.
  *
- * Return value: A newly-created `GdkTexture` or %NULL if an error occurred.
+ * Return value: A newly-created `GdkTexture`
  */
 GdkTexture *
 gdk_texture_new_from_file (GFile   *file,
index 34fbf234c410704ab648ef4595ecf1be017b4406..443d7656f67ab092d8d60e2deb54c3c52415f512 100644 (file)
@@ -818,7 +818,7 @@ gdk_wayland_display_get_next_serial (GdkDisplay *display)
  * Gets the startup notification ID for a Wayland display, or %NULL
  * if no ID has been defined.
  *
- * Returns: (nullable): the startup notification ID for @display, or %NULL
+ * Returns: (nullable): the startup notification ID for @display
  */
 const char *
 gdk_wayland_display_get_startup_notification_id (GdkDisplay  *display)
index 5f0a379f04ccea70f0691d7637d97aa797bfa2af..54840a87bd5421cff8ad00183a7ef589f67693ef 100644 (file)
@@ -2001,9 +2001,9 @@ gdk_x11_lookup_xdisplay (Display *xdisplay)
  * Given the root window ID of one of the screen’s of a #GdkDisplay,
  * finds the screen.
  *
- * Returns: (transfer none): the #GdkX11Screen corresponding to
- *   @xrootwin, or %NULL.
- **/
+ * Returns: (transfer none) (nullable): the #GdkX11Screen
+ *   corresponding to @xrootwin
+ */
 GdkX11Screen *
 _gdk_x11_display_screen_for_xrootwin (GdkDisplay *display,
                                      Window      xrootwin)
index 36d95bff2e077eb0b800c32a5c59d72eccc14fd1..a6dce8699f753b42d376dbed804329e53f95c505 100644 (file)
@@ -290,8 +290,7 @@ _gdk_x11_screen_init_visuals (GdkX11Screen *x11_screen,
  *
  * Looks up the #GdkVisual for a particular screen and X Visual ID.
  *
- * Returns: (transfer none) (type GdkX11Visual): the #GdkVisual (owned by the screen
- *   object), or %NULL if the visual ID wasn’t found.
+ * Returns: (transfer none) (nullable) (type GdkX11Visual): the #GdkVisual
  */
 GdkX11Visual *
 gdk_x11_screen_lookup_visual (GdkX11Screen *x11_screen,
index 87004e5a3f069cbe972924bfa3eac53ac632b3c8..b179f909b6b4204248f770e0c46ce83c0d87ec9e 100644 (file)
@@ -578,8 +578,7 @@ gsk_gl_shader_get_source (GskGLShader *shader)
  * Gets the resource path for the GLSL sourcecode being used
  * to render this shader.
  *
- * Returns: (transfer none): The resource path for the shader,
- *     or %NULL if none.
+ * Returns: (transfer none) (nullable): The resource path for the shader
  */
 const char *
 gsk_gl_shader_get_resource (GskGLShader *shader)
index f99aaefa393f0f51a88bd96142fb780a945fd661..7c442a760bcf558ceba6c0f4f7fc3c6489f09d11 100644 (file)
@@ -600,7 +600,7 @@ gsk_render_node_write_to_file (GskRenderNode *node,
 /**
  * gsk_render_node_deserialize:
  * @bytes: the bytes containing the data
- * @error_func: (nullable) (scope call): Callback on parsing errors or %NULL
+ * @error_func: (nullable) (scope call): Callback on parsing errors
  * @user_data: (closure error_func): user_data for @error_func
  *
  * Loads data previously created via gsk_render_node_serialize().
index 51a5d49e04bb1b7d6329909fc7741622b88ff858..dabb583f07f97ccaa0e2b2fc33e3caede0176ba7 100644 (file)
@@ -94,7 +94,7 @@ gsk_transform_has_class (GskTransform            *self,
  * @transform_class: class structure for this self
  * @category: The category of this transform. Will be used to initialize
  *   the result's category together with &next's category
- * @next: (transfer full): Next transform to multiply with or %NULL if none
+ * @next: (transfer full) (nullable): Next transform to multiply with
  *
  * Returns: (transfer full): the newly created #GskTransform
  */
@@ -217,7 +217,7 @@ static const GskTransformClass GSK_IDENTITY_TRANSFORM_CLASS =
 
 /*<private>
  * gsk_transform_is_identity:
- * @transform: (nullable): A transform or %NULL
+ * @transform: (nullable): A transform
  *
  * Checks if the transform is a representation of the identity
  * transform.
index b365519c18e8eba89b4dd071566c884715b720db..a58f14f5f1843de37d86b096f8dc186d7c60f5cd 100644 (file)
@@ -1016,14 +1016,13 @@ gsk_ngl_driver_release_render_target (GskNglDriver       *self,
  * gsk_ngl_driver_lookup_shader:
  * @self: a #GskNglDriver
  * @shader: the shader to lookup or load
- * @error: a location for a #GError, or %NULL
+ * @error: a location for a #GError
  *
  * Attepts to load @shader from the shader cache.
  *
  * If it has not been loaded, then it will compile the shader on demand.
  *
- * Returns: (transfer none): a #GskGLShader if successful; otherwise
- *   %NULL and @error is set.
+ * Returns: (nullable) (transfer none): a #GskGLShader
  */
 GskNglProgram *
 gsk_ngl_driver_lookup_shader (GskNglDriver  *self,
index 7bc9224dbdeca3706df1aab12cdaa331192306c5..77ab75687e14bf7ee89ad628902b0e18f6fb6456 100644 (file)
  * @url: the URL to parse
  * @out_mimetype: (out nullable optional): Return location to set the contained
  *   mime type to. If no mime type was specified, this value is set to %NULL.
- * @error: error location or %NULL for none
+ * @error: error location
  *
  * Decodes a data URL according to RFC2397 and returns the decoded data.
  *
- * Returns: a new #GBytes with the decoded data or %NULL on error
+ * Returns: a new #GBytes with the decoded data
  **/
 GBytes *
 gtk_css_data_url_parse (const char  *url,
index f213900a844ea7957aaa039016443e6055e5f36d..f8b403c3d85910f196f8d3731fb875f6b376a95f 100644 (file)
@@ -158,8 +158,7 @@ gtk_css_parser_unref (GtkCssParser *self)
  * for example when raw data is parsed - %NULL is returned.
  *
  * Returns: (nullable) (transfer none): The file being parsed
- *   or %NULL.
- **/
+ */
 GFile *
 gtk_css_parser_get_file (GtkCssParser *self)
 {
@@ -971,7 +970,7 @@ gtk_css_parser_parse_url_arg (GtkCssParser *parser,
  * consumes it, resolves the URL and returns the resulting #GFile.
  * On failure, an error is emitted and %NULL is returned.
  *
- * Returns: (nullable) (transfer full): the resulting URL or %NULL on error
+ * Returns: (nullable) (transfer full): the resulting URL
  **/
 char *
 gtk_css_parser_consume_url (GtkCssParser *self)
index 68ad9c6e6362730f09579c6dc9cbd2047d577674..b770b554dc10935c9a83c4f7611eb23d334c1272 100644 (file)
@@ -666,7 +666,7 @@ set_parent_and_flags (GtkWidget      *dialog,
 
 /**
  * gtk_app_chooser_dialog_new:
- * @parent: (nullable): a `GtkWindow`, or %NULL
+ * @parent: (nullable): a `GtkWindow`
  * @flags: flags for this dialog
  * @file: a `GFile`
  *
@@ -696,7 +696,7 @@ gtk_app_chooser_dialog_new (GtkWindow      *parent,
 
 /**
  * gtk_app_chooser_dialog_new_for_content_type:
- * @parent: (nullable): a `GtkWindow`, or %NULL
+ * @parent: (nullable): a `GtkWindow`
  * @flags: flags for this dialog
  * @content_type: a content type string
  *
index 341aec92b1579ea58404647528267d28a25513f8..1dc9a08d180e18913f903b7b466dbe430189a677 100644 (file)
@@ -843,7 +843,7 @@ gtk_application_window_set_help_overlay (GtkApplicationWindow *window,
  * See [method@Gtk.ApplicationWindow.set_help_overlay].
  *
  * Returns: (transfer none) (nullable): the help overlay associated
- *   with @window, or %NULL
+ *   with @window
  */
 GtkShortcutsWindow *
 gtk_application_window_get_help_overlay (GtkApplicationWindow *window)
index e36c38332a92edb808ac3718466ef3078e94da50..0f13eb29bbd7e045f23943c6faf3b8e7db8e60c4 100644 (file)
@@ -1776,7 +1776,7 @@ gtk_assistant_remove_page (GtkAssistant *assistant,
 /**
  * gtk_assistant_set_forward_page_func:
  * @assistant: a `GtkAssistant`
- * @page_func: (nullable): the `GtkAssistant`PageFunc, or %NULL
+ * @page_func: (nullable): the `GtkAssistantPageFunc`, or %NULL
  *   to use the default one
  * @data: user data for @page_func
  * @destroy: destroy notifier for @data
index ea24cf76374fee34d033fa6c9a72fca56b72bf79..b4fbad8b9c15b40a85bef2c25ac01537fff33252 100644 (file)
@@ -530,7 +530,7 @@ gtk_box_insert_child_after (GtkBox    *box,
  * gtk_box_reorder_child_after:
  * @box: a `GtkBox`
  * @child: the `GtkWidget` to move, must be a child of @box
- * @sibling: (nullable): the sibling to move @child after, or %NULL
+ * @sibling: (nullable): the sibling to move @child after
  *
  * Moves @child to the position after @sibling in the list
  * of @box children.
index 46076eb21cbcd33736748233553963a38315ba27..1b384dac6c6c3122649eace8c69d480865e00353 100644 (file)
@@ -106,7 +106,7 @@ gtk_buildable_get_buildable_id (GtkBuildable *buildable)
  * @buildable: a `GtkBuildable`
  * @builder: a `GtkBuilder`
  * @child: child to add
- * @type: (nullable): kind of child or %NULL
+ * @type: (nullable): kind of child
  *
  * Adds a child to @buildable. @type is an optional string
  * describing how the child should be added.
index b52ece9f8e38e0e70ea2b5c2211de15aa63c5629..cfb698fa40782f7650a5a1ce9b5b37d5b4dd8e49 100644 (file)
@@ -1176,7 +1176,7 @@ gtk_builder_new (void)
  * gtk_builder_add_from_file:
  * @builder: a `GtkBuilder`
  * @filename: the name of the file to parse
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Parses a file containing a UI definition and merges it with
  * the current contents of @builder.
@@ -1247,7 +1247,7 @@ gtk_builder_add_from_file (GtkBuilder   *builder,
  * @builder: a `GtkBuilder`
  * @filename: the name of the file to parse
  * @object_ids: (array zero-terminated=1) (element-type utf8): nul-terminated array of objects to build
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Parses a file containing a UI definition building only the
  * requested objects and merges them with the current contents
@@ -1315,7 +1315,7 @@ gtk_builder_add_objects_from_file (GtkBuilder   *builder,
  * @template_type: the type that the template is for
  * @buffer: the string to parse
  * @length: the length of @buffer (may be -1 if @buffer is nul-terminated)
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Main private entry point for building composite components
  * from template XML.
@@ -1372,7 +1372,7 @@ gtk_builder_extend_with_template (GtkBuilder   *builder,
  * gtk_builder_add_from_resource:
  * @builder: a `GtkBuilder`
  * @resource_path: the path of the resource file to parse
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an erro
  *
  * Parses a resource file containing a UI definition
  * and merges it with the current contents of @builder.
@@ -1450,7 +1450,7 @@ gtk_builder_add_from_resource (GtkBuilder   *builder,
  * @builder: a `GtkBuilder`
  * @resource_path: the path of the resource file to parse
  * @object_ids: (array zero-terminated=1) (element-type utf8): nul-terminated array of objects to build
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Parses a resource file containing a UI definition, building
  * only the requested objects and merges them with the current
@@ -1525,7 +1525,7 @@ gtk_builder_add_objects_from_resource (GtkBuilder   *builder,
  * @builder: a `GtkBuilder`
  * @buffer: the string to parse
  * @length: the length of @buffer (may be -1 if @buffer is nul-terminated)
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Parses a string containing a UI definition and merges it
  * with the current contents of @builder.
@@ -1584,7 +1584,7 @@ gtk_builder_add_from_string (GtkBuilder   *builder,
  * @buffer: the string to parse
  * @length: the length of @buffer (may be -1 if @buffer is nul-terminated)
  * @object_ids: (array zero-terminated=1) (element-type utf8): nul-terminated array of objects to build
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Parses a string containing a UI definition, building only the
  * requested objects and merges them with the current contents of
@@ -1646,7 +1646,6 @@ gtk_builder_add_objects_from_string (GtkBuilder   *builder,
  * of the returned object.
  *
  * Returns: (nullable) (transfer none): the object named @name
- *   or %NULL if it could not be found in the object tree.
  */
 GObject *
 gtk_builder_get_object (GtkBuilder  *builder,
@@ -1694,7 +1693,7 @@ gtk_builder_get_objects (GtkBuilder *builder)
 /**
  * gtk_builder_set_translation_domain: (attributes org.gtk.Method.set_property=translation-domain)
  * @builder: a `GtkBuilder`
- * @domain: (nullable): the translation domain or %NULL
+ * @domain: (nullable): the translation domain
  *
  * Sets the translation domain of @builder.
  */
@@ -1721,8 +1720,6 @@ gtk_builder_set_translation_domain (GtkBuilder  *builder,
  * Gets the translation domain of @builder.
  *
  * Returns: (transfer none) (nullable): the translation domain
- *   or %NULL. This string is owned by the builder object and
- *   must not be modified or freed.
  */
 const char *
 gtk_builder_get_translation_domain (GtkBuilder *builder)
@@ -1938,7 +1935,7 @@ _gtk_builder_finish (GtkBuilder  *builder,
  * @pspec: the `GParamSpec` for the property
  * @string: the string representation of the value
  * @value: (out): the `GValue` to store the result in
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Demarshals a value from a string.
  *
@@ -2064,7 +2061,7 @@ error:
  * @type: the `GType` of the value
  * @string: the string representation of the value
  * @value: (out): the #GValue to store the result in
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Demarshals a value from a string.
  *
@@ -2732,7 +2729,7 @@ _gtk_builder_get_template_type (GtkBuilder *builder)
  * @function_name: name of the function to look up
  * @flags: closure creation flags
  * @object: (nullable): Object to create the closure with
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Creates a closure to invoke the function called @function_name.
  *
index 425c5afa4e7bdee5d46682bf77e35bbe7a4d7053..be030fd0a428983b4e25d987bf4cc6f8e832d54b 100644 (file)
@@ -309,7 +309,7 @@ gtk_buildable_parse_context_pop (GtkBuildableParseContext *context)
  * give the element_name as passed to those functions. For the parent
  * elements, see gtk_buildable_parse_context_get_element_stack().
  *
- * Returns: (nullable): the name of the currently open element, or %NULL
+ * Returns: (nullable): the name of the currently open element
  */
 const char *
 gtk_buildable_parse_context_get_element (GtkBuildableParseContext *context)
@@ -346,8 +346,8 @@ gtk_buildable_parse_context_get_element_stack (GtkBuildableParseContext *context
 /**
  * gtk_buildable_parse_context_get_position:
  * @context: a #GtkBuildableParseContext
- * @line_number: (out) (optional): return location for a line number, or %NULL
- * @char_number: (out) (optional): return location for a char-on-line number, or %NULL
+ * @line_number: (out) (optional): return location for a line number
+ * @char_number: (out) (optional): return location for a char-on-line number
  *
  * Retrieves the current line number and the number of the character on
  * that line. Intended for use in error messages; there are no strict
index f7290f891300ea4638222a2aafc28ad44f13847d..f5503c8b11fc6c52c871010bd8da35d4db2797aa 100644 (file)
@@ -515,7 +515,7 @@ gtk_builder_cscope_add_callback_symbols (GtkBuilderCScope *self,
  * gtk_builder_cscope_add_callback_symbol().
  *
  * Returns: (nullable) (transfer none): The callback symbol
- *   in @builder for @callback_name, or %NULL
+ *   in @builder for @callback_name
  */
 GCallback
 gtk_builder_cscope_lookup_callback_symbol (GtkBuilderCScope *self,
index 2b2c1455b99b3ee717b283c8383c9cf7f8ea2478..58e6b342101b82e5619e81ccaa301dd23c260825 100644 (file)
@@ -640,7 +640,7 @@ gtk_button_new_with_label (const char *label)
 
 /**
  * gtk_button_new_from_icon_name:
- * @icon_name: (nullable): an icon name or %NULL
+ * @icon_name: (nullable): an icon name
  *
  * Creates a new button containing an icon from the current icon theme.
  *
index 440a81d74e129199ceaa49acbf9d6b01f9a71252..5d7c328606916007304c5acd3eb06860a683c547 100644 (file)
@@ -1883,11 +1883,11 @@ get_cell_by_position (GtkCellRenderer     *renderer,
  * @context: the #GtkCellAreaContext used to hold sizes for @area.
  * @widget: the #GtkWidget that @area is rendering on
  * @cell_area: the whole allocated area for @area in @widget
- *             for this row
+ *   for this row
  * @x: the x position
  * @y: the y position
  * @alloc_area: (out) (optional): where to store the inner allocated area of the
- *                                  returned cell renderer, or %NULL.
+ *   returned cell renderer
  *
  * Gets the #GtkCellRenderer at @x and @y coordinates inside @area and optionally
  * returns the full cell allocation for it inside @cell_area.
@@ -1997,8 +1997,8 @@ gtk_cell_area_get_request_mode (GtkCellArea *area)
  * @area: a #GtkCellArea
  * @context: the #GtkCellAreaContext to perform this request with
  * @widget: the #GtkWidget where @area will be rendering
- * @minimum_width: (out) (optional): location to store the minimum width, or %NULL
- * @natural_width: (out) (optional): location to store the natural width, or %NULL
+ * @minimum_width: (out) (optional): location to store the minimum width
+ * @natural_width: (out) (optional): location to store the natural width
  *
  * Retrieves a cell area’s initial minimum and natural width.
  *
@@ -2028,8 +2028,8 @@ gtk_cell_area_get_preferred_width (GtkCellArea        *area,
  * @context: the #GtkCellAreaContext which has already been requested for widths.
  * @widget: the #GtkWidget where @area will be rendering
  * @width: the width for which to check the height of this area
- * @minimum_height: (out) (optional): location to store the minimum height, or %NULL
- * @natural_height: (out) (optional): location to store the natural height, or %NULL
+ * @minimum_height: (out) (optional): location to store the minimum height
+ * @natural_height: (out) (optional): location to store the natural height
  *
  * Retrieves a cell area’s minimum and natural height if it would be given
  * the specified @width.
@@ -2069,8 +2069,8 @@ gtk_cell_area_get_preferred_height_for_width (GtkCellArea        *area,
  * @area: a #GtkCellArea
  * @context: the #GtkCellAreaContext to perform this request with
  * @widget: the #GtkWidget where @area will be rendering
- * @minimum_height: (out) (optional): location to store the minimum height, or %NULL
- * @natural_height: (out) (optional): location to store the natural height, or %NULL
+ * @minimum_height: (out) (optional): location to store the minimum height
+ * @natural_height: (out) (optional): location to store the natural height
  *
  * Retrieves a cell area’s initial minimum and natural height.
  *
@@ -2100,8 +2100,8 @@ gtk_cell_area_get_preferred_height (GtkCellArea        *area,
  * @context: the #GtkCellAreaContext which has already been requested for widths.
  * @widget: the #GtkWidget where @area will be rendering
  * @height: the height for which to check the width of this area
- * @minimum_width: (out) (optional): location to store the minimum width, or %NULL
- * @natural_width: (out) (optional): location to store the natural width, or %NULL
+ * @minimum_width: (out) (optional): location to store the minimum width
+ * @natural_width: (out) (optional): location to store the natural width
  *
  * Retrieves a cell area’s minimum and natural width if it would be given
  * the specified @height.
@@ -2381,8 +2381,7 @@ gtk_cell_area_class_install_cell_property (GtkCellAreaClass   *aclass,
  *
  * Finds a cell property of a cell area class by name.
  *
- * Returns: (transfer none): the #GParamSpec of the child property
- *   or %NULL if @aclass has no child property with that name.
+ * Returns: (nullable) (transfer none): the #GParamSpec of the child property
  */
 GParamSpec*
 gtk_cell_area_class_find_cell_property (GtkCellAreaClass   *aclass,
@@ -3073,7 +3072,7 @@ gtk_cell_area_get_focus_siblings (GtkCellArea     *area,
  * cell may have been a sibling.
  *
  * Returns: (nullable) (transfer none): the #GtkCellRenderer for which @renderer
- *    is a sibling, or %NULL.
+ *    is a sibling
  */
 GtkCellRenderer *
 gtk_cell_area_get_focus_from_sibling (GtkCellArea          *area,
@@ -3438,8 +3437,8 @@ gtk_cell_area_inner_cell_area (GtkCellArea        *area,
  * @widget: the #GtkWidget that @area is rendering onto
  * @for_size: the allocation contextual size to request for, or -1 if
  * the base request for the orientation is to be returned.
- * @minimum_size: (out) (optional): location to store the minimum size, or %NULL
- * @natural_size: (out) (optional): location to store the natural size, or %NULL
+ * @minimum_size: (out) (optional): location to store the minimum size
+ * @natural_size: (out) (optional): location to store the natural size
  *
  * This is a convenience function for #GtkCellArea implementations
  * to request size for cell renderers. It’s important to use this
index 9e6800889444dfabff8a897326c5e83faffad85d..058ee41e640d594502d91fd0b0b0e40896312fd9 100644 (file)
@@ -507,8 +507,8 @@ gtk_cell_area_context_get_preferred_width_for_height (GtkCellAreaContext *contex
 /**
  * gtk_cell_area_context_get_allocation:
  * @context: a #GtkCellAreaContext
- * @width: (out) (optional): location to store the allocated width, or %NULL
- * @height: (out) (optional): location to store the allocated height, or %NULL
+ * @width: (out) (optional): location to store the allocated width
+ * @height: (out) (optional): location to store the allocated height
  *
  * Fetches the current allocation size for @context.
  *
index 12a1ba7bf97019e4953319098bd8d64ad1acda06..c30497daeed87139599a64c94283aa80d839a055 100644 (file)
@@ -489,7 +489,7 @@ gtk_cell_layout_add_attribute (GtkCellLayout   *cell_layout,
  * gtk_cell_layout_set_cell_data_func:
  * @cell_layout: a #GtkCellLayout
  * @cell: a #GtkCellRenderer
- * @func: (nullable): the #GtkCellLayoutDataFunc to use, or %NULL
+ * @func: (nullable): the #GtkCellLayoutDataFunc to use
  * @func_data: (closure): user data for @func
  * @destroy: destroy notify for @func_data
  *
@@ -582,8 +582,7 @@ gtk_cell_layout_get_cells (GtkCellLayout *cell_layout)
  * if called on a #GtkCellArea or might be %NULL if no #GtkCellArea
  * is used by @cell_layout.
  *
- * Returns: (transfer none) (nullable): the cell area used by @cell_layout,
- * or %NULL in case no cell area is used.
+ * Returns: (transfer none) (nullable): the cell area used by @cell_layout
  */
 GtkCellArea *
 gtk_cell_layout_get_area (GtkCellLayout *cell_layout)
index 4870d58f95e25dc60b7df52b572a3a9fda065085..72021a8f0ed7efe072bb3390f804066f7f4c3f91 100644 (file)
@@ -877,8 +877,8 @@ gtk_cell_renderer_set_fixed_size (GtkCellRenderer *cell,
 /**
  * gtk_cell_renderer_get_fixed_size:
  * @cell: A #GtkCellRenderer
- * @width: (out) (optional): location to fill in with the fixed width of the cell, or %NULL
- * @height: (out) (optional): location to fill in with the fixed height of the cell, or %NULL
+ * @width: (out) (optional): location to fill in with the fixed width of the cell
+ * @height: (out) (optional): location to fill in with the fixed height of the cell
  *
  * Fills in @width and @height with the appropriate size of @cell.
  **/
@@ -943,8 +943,8 @@ gtk_cell_renderer_set_alignment (GtkCellRenderer *cell,
 /**
  * gtk_cell_renderer_get_alignment:
  * @cell: A #GtkCellRenderer
- * @xalign: (out) (optional): location to fill in with the x alignment of the cell, or %NULL
- * @yalign: (out) (optional): location to fill in with the y alignment of the cell, or %NULL
+ * @xalign: (out) (optional): location to fill in with the x alignment of the cell
+ * @yalign: (out) (optional): location to fill in with the y alignment of the cell
  *
  * Fills in @xalign and @yalign with the appropriate values of @cell.
  **/
@@ -1008,8 +1008,8 @@ gtk_cell_renderer_set_padding (GtkCellRenderer *cell,
 /**
  * gtk_cell_renderer_get_padding:
  * @cell: A #GtkCellRenderer
- * @xpad: (out) (optional): location to fill in with the x padding of the cell, or %NULL
- * @ypad: (out) (optional): location to fill in with the y padding of the cell, or %NULL
+ * @xpad: (out) (optional): location to fill in with the x padding of the cell
+ * @ypad: (out) (optional): location to fill in with the y padding of the cell
  *
  * Fills in @xpad and @ypad with the appropriate values of @cell.
  **/
@@ -1363,8 +1363,8 @@ gtk_cell_renderer_get_request_mode (GtkCellRenderer *cell)
  * gtk_cell_renderer_get_preferred_width:
  * @cell: a #GtkCellRenderer instance
  * @widget: the #GtkWidget this cell will be rendering to
- * @minimum_size: (out) (optional): location to store the minimum size, or %NULL
- * @natural_size: (out) (optional): location to store the natural size, or %NULL
+ * @minimum_size: (out) (optional): location to store the minimum size
+ * @natural_size: (out) (optional): location to store the natural size
  *
  * Retrieves a renderer’s natural size when rendered to @widget.
  */
@@ -1409,8 +1409,8 @@ gtk_cell_renderer_get_preferred_width (GtkCellRenderer *cell,
  * gtk_cell_renderer_get_preferred_height:
  * @cell: a #GtkCellRenderer instance
  * @widget: the #GtkWidget this cell will be rendering to
- * @minimum_size: (out) (optional): location to store the minimum size, or %NULL
- * @natural_size: (out) (optional): location to store the natural size, or %NULL
+ * @minimum_size: (out) (optional): location to store the minimum size
+ * @natural_size: (out) (optional): location to store the natural size
  *
  * Retrieves a renderer’s natural size when rendered to @widget.
  */
@@ -1456,8 +1456,8 @@ gtk_cell_renderer_get_preferred_height (GtkCellRenderer *cell,
  * @cell: a #GtkCellRenderer instance
  * @widget: the #GtkWidget this cell will be rendering to
  * @height: the size which is available for allocation
- * @minimum_width: (out) (optional): location for storing the minimum size, or %NULL
- * @natural_width: (out) (optional): location for storing the preferred size, or %NULL
+ * @minimum_width: (out) (optional): location for storing the minimum size
+ * @natural_width: (out) (optional): location for storing the preferred size
  *
  * Retrieves a cell renderers’s minimum and natural width if it were rendered to 
  * @widget with the specified @height.
@@ -1504,8 +1504,8 @@ gtk_cell_renderer_get_preferred_width_for_height (GtkCellRenderer *cell,
  * @cell: a #GtkCellRenderer instance
  * @widget: the #GtkWidget this cell will be rendering to
  * @width: the size which is available for allocation
- * @minimum_height: (out) (optional): location for storing the minimum size, or %NULL
- * @natural_height: (out) (optional): location for storing the preferred size, or %NULL
+ * @minimum_height: (out) (optional): location for storing the minimum size
+ * @natural_height: (out) (optional): location for storing the preferred size
  *
  * Retrieves a cell renderers’s minimum and natural height if it were rendered to 
  * @widget with the specified @width.
@@ -1551,8 +1551,8 @@ gtk_cell_renderer_get_preferred_height_for_width (GtkCellRenderer *cell,
  * gtk_cell_renderer_get_preferred_size:
  * @cell: a #GtkCellRenderer instance
  * @widget: the #GtkWidget this cell will be rendering to
- * @minimum_size: (out) (optional): location for storing the minimum size, or %NULL
- * @natural_size: (out) (optional): location for storing the natural size, or %NULL
+ * @minimum_size: (out) (optional): location for storing the minimum size
+ * @natural_size: (out) (optional): location for storing the natural size
  *
  * Retrieves the minimum and natural size of a cell taking
  * into account the widget’s preference for height-for-width management.
@@ -1643,8 +1643,8 @@ gtk_cell_renderer_get_aligned_area (GtkCellRenderer      *cell,
 
 /**
  * gtk_cell_renderer_get_state:
- * @cell: (nullable): a #GtkCellRenderer, or %NULL
- * @widget: (nullable): a #GtkWidget, or %NULL
+ * @cell: (nullable): a #GtkCellRenderer
+ * @widget: (nullable): a #GtkWidget
  * @cell_state: cell renderer state
  *
  * Translates the cell renderer state to #GtkStateFlags,
index 8cbfd1e79ce6fa0411c144736e22ba6f68c0180e..57a8b82b4e2807d1b5dcf6246afc9bf88bf57e70 100644 (file)
@@ -1023,8 +1023,8 @@ gtk_cell_view_set_model (GtkCellView  *cell_view,
  * Returns the model for @cell_view. If no model is used %NULL is
  * returned.
  *
- * Returns: (nullable) (transfer none): a #GtkTreeModel used or %NULL
- **/
+ * Returns: (nullable) (transfer none): a #GtkTreeModel used
+ */
 GtkTreeModel *
 gtk_cell_view_get_model (GtkCellView *cell_view)
 {
@@ -1077,7 +1077,7 @@ gtk_cell_view_set_displayed_row (GtkCellView *cell_view,
  * displayed row. If no row is currently displayed, 
  * %NULL is returned.
  *
- * Returns: (nullable) (transfer full): the currently displayed row or %NULL
+ * Returns: (nullable) (transfer full): the currently displayed row
  */
 GtkTreePath *
 gtk_cell_view_get_displayed_row (GtkCellView *cell_view)
index 73b1f178880d08592c0f516078f74fdfb3ae7342..8319acc667c04cadf76314d2df1b0d93d48e32df 100644 (file)
@@ -245,7 +245,7 @@ gtk_center_box_new (void)
 /**
  * gtk_center_box_set_start_widget:
  * @self: a `GtkCenterBox`
- * @child: (nullable): the new start widget, or %NULL
+ * @child: (nullable): the new start widget
  *
  * Sets the start widget.
  *
@@ -271,7 +271,7 @@ gtk_center_box_set_start_widget (GtkCenterBox *self,
 /**
  * gtk_center_box_set_center_widget:
  * @self: a `GtkCenterBox`
- * @child: (nullable): the new center widget, or %NULL
+ * @child: (nullable): the new center widget
  *
  * Sets the center widget.
  *
@@ -297,7 +297,7 @@ gtk_center_box_set_center_widget (GtkCenterBox *self,
 /**
  * gtk_center_box_set_end_widget:
  * @self: a `GtkCenterBox`
- * @child: (nullable): the new end widget, or %NULL
+ * @child: (nullable): the new end widget
  *
  * Sets the end widget.
  *
index d15b13ede8511a0056cc388912174a5468da4fd8..f8b9c9c774261a521be42d86d5984ab52224c284 100644 (file)
@@ -193,7 +193,7 @@ gtk_color_chooser_set_use_alpha (GtkColorChooser *chooser,
  *   be displayed in rows, %GTK_ORIENTATION_VERTICAL for columns
  * @colors_per_line: the number of colors to show in each row/column
  * @n_colors: the total number of elements in @colors
- * @colors: (nullable) (array length=n_colors): the colors of the palette, or %NULL
+ * @colors: (nullable) (array length=n_colors): the colors of the palette
  *
  * Adds a palette to the color chooser.
  *
index 8c8067e41e157827571702a99f9119605406882d..66a9df24a58c01dbb2737df8e72b2e1735bc03c2 100644 (file)
@@ -276,8 +276,8 @@ gtk_color_chooser_dialog_iface_init (GtkColorChooserInterface *iface)
 
 /**
  * gtk_color_chooser_dialog_new:
- * @title: (nullable): Title of the dialog, or %NULL
- * @parent: (nullable): Transient parent of the dialog, or %NULL
+ * @title: (nullable): Title of the dialog
+ * @parent: (nullable): Transient parent of the dialog
  *
  * Creates a new `GtkColorChooserDialog`.
  *
index 47d55f7d691796d469facce5562c6bb24975d203..5bb6f2e8d5ae4f2ae1bdac14b6992aa860bf7e51 100644 (file)
@@ -1327,7 +1327,7 @@ gtk_column_view_init (GtkColumnView *self)
 
 /**
  * gtk_column_view_new:
- * @model: (nullable) (transfer full): the list model to use, or %NULL
+ * @model: (nullable) (transfer full): the list model to use
  *
  * Creates a new `GtkColumnView`.
  *
@@ -1372,7 +1372,7 @@ gtk_column_view_get_model (GtkColumnView *self)
 /**
  * gtk_column_view_set_model: (attributes org.gtk.Method.set_property=model)
  * @self: a #GtkColumnView
- * @model: (nullable) (transfer none): the model to use or %NULL for none
+ * @model: (nullable) (transfer none): the model to use
  *
  * Sets the model to use.
  *
@@ -1678,7 +1678,7 @@ gtk_column_view_get_sorter (GtkColumnView *self)
 /**
  * gtk_column_view_sort_by_column:
  * @self: a `GtkColumnView`
- * @column: (nullable): the `GtkColumnViewColumn` to sort by, or %NULL
+ * @column: (nullable): the `GtkColumnViewColumn` to sort by
  * @direction: the direction to sort in
  *
  * Sets the sorting of the view.
index bae06745441cb2465bd0c2b0353b05501efc9a97..32eb8dd7b5ff9cef764c357aeb690c644abb3713 100644 (file)
@@ -655,7 +655,7 @@ gtk_column_view_column_get_factory (GtkColumnViewColumn *self)
 /**
  * gtk_column_view_column_set_factory: (attributes org.gtk.Method.set_property=factory)
  * @self: a `GtkColumnViewColumn`
- * @factory: (nullable) (transfer none): the factory to use or %NULL for none
+ * @factory: (nullable) (transfer none): the factory to use
  *
  * Sets the `GtkListItemFactory` to use for populating list items for this
  * column.
@@ -848,7 +848,7 @@ gtk_column_view_column_get_visible (GtkColumnViewColumn *self)
 /**
  * gtk_column_view_column_set_header_menu: (attributes org.gtk.Method.set_property=header-menu)
  * @self: a `GtkColumnViewColumn`
- * @menu: (nullable): a `GMenuModel`, or %NULL
+ * @menu: (nullable): a `GMenuModel`
  *
  * Sets the menu model that is used to create the context menu
  * for the column header.
@@ -876,7 +876,7 @@ gtk_column_view_column_set_header_menu (GtkColumnViewColumn *self,
  * Gets the menu model that is used to create the context menu
  * for the column header.
  *
- * Returns: (transfer none) (nullable): the #GMenuModel, or %NULL
+ * Returns: (transfer none) (nullable): the #GMenuModel
  */
 GMenuModel *
 gtk_column_view_column_get_header_menu (GtkColumnViewColumn *self)
index adbc69f83afb58283cc167513ba259b75bd659f0..69e8ea949aafb04dce9adbd2f32225dabc447413 100644 (file)
@@ -2060,7 +2060,7 @@ gtk_combo_box_get_active_iter (GtkComboBox     *combo_box,
 /**
  * gtk_combo_box_set_active_iter:
  * @combo_box: A `GtkComboBox`
- * @iter: (nullable): The `GtkTreeIter`, or %NULL
+ * @iter: (nullable): The `GtkTreeIter`
  *
  * Sets the current active item to be the one referenced by @iter.
  *
@@ -2569,8 +2569,8 @@ gtk_combo_box_get_row_separator_func (GtkComboBox *combo_box)
  * gtk_combo_box_set_row_separator_func:
  * @combo_box: a `GtkComboBox`
  * @func: (nullable): a `GtkTreeViewRowSeparatorFunc`
- * @data: (nullable): user data to pass to @func, or %NULL
- * @destroy: (nullable): destroy notifier for @data, or %NULL
+ * @data: (nullable): user data to pass to @func
+ * @destroy: (nullable): destroy notifier for @data
  *
  * Sets the row separator function, which is used to determine
  * whether a row should be drawn as a separator.
@@ -2848,7 +2848,7 @@ gtk_combo_box_get_id_column (GtkComboBox *combo_box)
  * not set, or if no row is active, or if the active row has a %NULL
  * ID value, then %NULL is returned.
  *
- * Returns: (nullable): the ID of the active row, or %NULL
+ * Returns: (nullable): the ID of the active row
  */
 const char *
 gtk_combo_box_get_active_id (GtkComboBox *combo_box)
@@ -2887,7 +2887,7 @@ gtk_combo_box_get_active_id (GtkComboBox *combo_box)
 /**
  * gtk_combo_box_set_active_id: (attributes org.gtk.Method.set_property=active-id)
  * @combo_box: a `GtkComboBox`
- * @active_id: (nullable): the ID of the row to select, or %NULL
+ * @active_id: (nullable): the ID of the row to select
  *
  * Changes the active row of @combo_box to the one that has an ID equal to
  * @active_id.
index 964d529dd6999f343f5503f632b7782762208f22..cb5de3ff5ee97710f32c91f1bf8bda3dc0877797 100644 (file)
@@ -431,7 +431,7 @@ gtk_combo_box_text_insert_text (GtkComboBoxText *combo_box,
 /**
  * gtk_combo_box_text_append:
  * @combo_box: A `GtkComboBoxText`
- * @id: (nullable): a string ID for this value, or %NULL
+ * @id: (nullable): a string ID for this value
  * @text: A string
  *
  * Appends @text to the list of strings stored in @combo_box.
@@ -452,7 +452,7 @@ gtk_combo_box_text_append (GtkComboBoxText *combo_box,
 /**
  * gtk_combo_box_text_prepend:
  * @combo_box: A `GtkComboBox`
- * @id: (nullable): a string ID for this value, or %NULL
+ * @id: (nullable): a string ID for this value
  * @text: a string
  *
  * Prepends @text to the list of strings stored in @combo_box.
@@ -475,7 +475,7 @@ gtk_combo_box_text_prepend (GtkComboBoxText *combo_box,
  * gtk_combo_box_text_insert:
  * @combo_box: A `GtkComboBoxText`
  * @position: An index to insert @text
- * @id: (nullable): a string ID for this value, or %NULL
+ * @id: (nullable): a string ID for this value
  * @text: A string to display
  *
  * Inserts @text at @position in the list of strings stored in @combo_box.
index 9f3d0472533f45113df86e9ba34d1ead88b88230..5d7d4112a9b42d64c0d68e1214f34cd9a62ec9cc 100644 (file)
@@ -51,7 +51,7 @@ _gtk_css_lookup_is_missing (const GtkCssLookup *lookup,
  * _gtk_css_lookup_set:
  * @lookup: the lookup
  * @id: id of the property to set, see _gtk_style_property_get_id()
- * @section: (nullable): The @section the value was defined in or %NULL
+ * @section: (nullable): The @section the value was defined in
  * @value: the â€ścascading value” to use
  *
  * Sets the @value for a given @id. No value may have been set for @id
index eb19e527fe192c7ffa7af260abb0aa93d40dc4d2..815d2d262e1798dc83d76e6835b53c02bdedf61c 100644 (file)
@@ -385,8 +385,8 @@ gtk_custom_paper_unix_dialog_finalize (GObject *object)
 
 /**
  * gtk_custom_paper_unix_dialog_new:
- * @title: (nullable): the title of the dialog, or %NULL
- * @parent: (nullable): transient parent of the dialog, or %NULL
+ * @title: (nullable): the title of the dialog
+ * @parent: (nullable): transient parent of the dialog
  *
  * Creates a new custom paper dialog.
  *
index 8d00884aad74d4326108082c7cb2e6dbca66ff65..31e7f986846ac8097665064397629300e53015fe 100644 (file)
@@ -724,10 +724,10 @@ gtk_dialog_new_empty (const char      *title,
 
 /**
  * gtk_dialog_new_with_buttons:
- * @title: (nullable): Title of the dialog, or %NULL
- * @parent: (nullable): Transient parent of the dialog, or %NULL
+ * @title: (nullable): Title of the dialog
+ * @parent: (nullable): Transient parent of the dialog
  * @flags: from `GtkDialogFlags`
- * @first_button_text: (nullable): text to go in first button, or %NULL
+ * @first_button_text: (nullable): text to go in first button
  * @...: response ID for first button, then additional buttons, ending with %NULL
  *
  * Creates a new `GtkDialog` with the given title and transient parent.
index 096fe9d01d225be81b5aa387ff7062b71ae7a76c..0b37d59119b0444ac68f83be764ab69caaabcb87 100644 (file)
@@ -457,7 +457,7 @@ gtk_drag_icon_set_from_paintable (GdkDrag      *drag,
 /**
  * gtk_drag_icon_set_child: (attributes org.gtk.Method.set_property=child)
  * @self: a `GtkDragIcon`
- * @child: (nullable): a `GtkWidget` or %NULL
+ * @child: (nullable): a `GtkWidget`
  *
  * Sets the widget to display as the drag icon.
  */
@@ -491,7 +491,7 @@ gtk_drag_icon_set_child (GtkDragIcon *self,
  *
  * Gets the widget currently used as drag icon.
  *
- * Returns: (nullable) (transfer none): The drag icon or %NULL if none.
+ * Returns: (nullable) (transfer none): The drag icon
  **/
 GtkWidget *
 gtk_drag_icon_get_child (GtkDragIcon *self)
index a75f60f5c22fa7ac66cb9fb0b9d8ff4a836bca3c..ef70d6793cc90149c316f3b1270c6c05fe88695e 100644 (file)
@@ -359,7 +359,7 @@ gtk_drag_source_class_init (GtkDragSourceClass *class)
    * the [property@Gtk.DragSource:content] property, so if you set up that
    * property ahead of time, you don't need to connect to this signal.
    *
-   * Returns: (transfer full) (nullable): a `GdkContentProvider`, or %NULL
+   * Returns: (transfer full) (nullable): a `GdkContentProvider`
    */
   signals[PREPARE] =
       g_signal_new (I_("prepare"),
@@ -635,7 +635,7 @@ gtk_drag_source_get_content (GtkDragSource *source)
 /**
  * gtk_drag_source_set_content: (attributes org.gtk.Method.set_property=content)
  * @source: a `GtkDragSource`
- * @content: (nullable): a `GdkContentProvider`, or %NULL
+ * @content: (nullable): a `GdkContentProvider`
  *
  * Sets a content provider on a `GtkDragSource`.
  *
@@ -708,7 +708,7 @@ gtk_drag_source_set_actions (GtkDragSource *source,
 /**
  * gtk_drag_source_set_icon:
  * @source: a `GtkDragSource`
- * @paintable: (nullable): the #GdkPaintable to use as icon, or %NULL
+ * @paintable: (nullable): the #GdkPaintable to use as icon
  * @hot_x: the hotspot X coordinate on the icon
  * @hot_y: the hotspot Y coordinate on the icon
  *
@@ -744,7 +744,7 @@ gtk_drag_source_set_icon (GtkDragSource *source,
  * Returns the underlying `GdkDrag` object for an ongoing drag.
  *
  * Returns: (nullable) (transfer none): the `GdkDrag` of the current
- *   drag operation, or %NULL
+ *   drag operation
  */
 GdkDrag *
 gtk_drag_source_get_drag (GtkDragSource *source)
index 8f10748fa28edb9870f3c9470dd202350e4ea7a7..75c816cb74ebfc5a22b77462553661e4227ac257 100644 (file)
@@ -371,7 +371,7 @@ gtk_drop_controller_motion_contains_pointer (GtkDropControllerMotion *self)
  * over the widget of @self.
  *
  * Returns: (transfer none) (nullable): The `GdkDrop` currently
- *   happening within @self or %NULL if none
+ *   happening within @self
  */
 GdkDrop *
 gtk_drop_controller_motion_get_drop (GtkDropControllerMotion *self)
index 201776a1380f93003b6d099ae9a6259486824ad3..baf918179d83e7fe561e59d6e5f6619ce8a10243 100644 (file)
@@ -662,8 +662,8 @@ gtk_drop_down_init (GtkDropDown *self)
 
 /**
  * gtk_drop_down_new:
- * @model: (transfer full) (nullable): the model to use or %NULL for none
- * @expression: (transfer full) (nullable): the expression to use or %NULL for none
+ * @model: (transfer full) (nullable): the model to use
+ * @expression: (transfer full) (nullable): the expression to use
  *
  * Creates a new `GtkDropDown`.
  *
@@ -724,7 +724,7 @@ gtk_drop_down_get_model (GtkDropDown *self)
 /**
  * gtk_drop_down_set_model: (attributes org.gtk.Method.set_property=model)
  * @self: a `GtkDropDown`
- * @model: (nullable) (transfer none): the model to use or %NULL for none
+ * @model: (nullable) (transfer none): the model to use
  *
  * Sets the `GListModel` to use.
  */
@@ -798,7 +798,7 @@ gtk_drop_down_get_factory (GtkDropDown *self)
 /**
  * gtk_drop_down_set_factory: (attributes org.gtk.Method.set_property=factory)
  * @self: a `GtkDropDown`
- * @factory: (nullable) (transfer none): the factory to use or %NULL for none
+ * @factory: (nullable) (transfer none): the factory to use
  *
  * Sets the `GtkListItemFactory` to use for populating list items.
  **/
@@ -838,7 +838,7 @@ gtk_drop_down_get_list_factory (GtkDropDown *self)
 /**
  * gtk_drop_down_set_list_factory: (attributes org.gtk.Method.set_property=list-factory)
  * @self: a `GtkDropDown`
- * @factory: (nullable) (transfer none): the factory to use or %NULL for none
+ * @factory: (nullable) (transfer none): the factory to use
  *
  * Sets the `GtkListItemFactory` to use for populating list items in the popup.
  */
@@ -968,7 +968,7 @@ gtk_drop_down_get_enable_search (GtkDropDown *self)
 /**
  * gtk_drop_down_set_expression: (attributes org.gtk.Method.set_property=expression)
  * @self: a `GtkDropDown`
- * @expression: (nullable): a `GtkExpression`, or %NULL
+ * @expression: (nullable): a `GtkExpression`
  *
  * Sets the expression that gets evaluated to obtain strings from items.
  *
@@ -1005,7 +1005,7 @@ gtk_drop_down_set_expression (GtkDropDown   *self,
  *
  * See [method@Gtk.DropDown.set_expression].
  *
- * Returns: (nullable) (transfer none): a `GtkExpression` or %NULL
+ * Returns: (nullable) (transfer none): a `GtkExpression`
  */
 GtkExpression *
 gtk_drop_down_get_expression (GtkDropDown *self)
index c579f5b961f1c112b1111aaee32f2751d3239b39..8095bca07fd4269b8d2d874481655bb3f9afeae0 100644 (file)
@@ -666,8 +666,8 @@ gtk_editable_get_position (GtkEditable *editable)
 /**
  * gtk_editable_get_selection_bounds:
  * @editable: a `GtkEditable`
- * @start_pos: (out) (optional): location to store the starting position, or %NULL
- * @end_pos: (out) (optional): location to store the end position, or %NULL
+ * @start_pos: (out) (optional): location to store the starting position
+ * @end_pos: (out) (optional): location to store the end position
  *
  * Retrieves the selection bound of the editable.
  *
index aa6157154e3995b70647e454687896d91372ff09..267b174e5b154932d3948bbb822c80ac2d5b04ce 100644 (file)
@@ -2467,7 +2467,7 @@ gtk_entry_get_alignment (GtkEntry *entry)
  * gtk_entry_set_icon_from_paintable:
  * @entry: a `GtkEntry`
  * @icon_pos: Icon position
- * @paintable: (nullable): A `GdkPaintable`, or %NULL
+ * @paintable: (nullable): A `GdkPaintable`
  *
  * Sets the icon shown in the specified position using a `GdkPaintable`.
  *
@@ -2522,7 +2522,7 @@ gtk_entry_set_icon_from_paintable (GtkEntry             *entry,
  * gtk_entry_set_icon_from_icon_name:
  * @entry: A `GtkEntry`
  * @icon_pos: The position at which to set the icon
- * @icon_name: (nullable): An icon name, or %NULL
+ * @icon_name: (nullable): An icon name
  *
  * Sets the icon shown in the entry at the specified position
  * from the current icon theme.
@@ -2578,7 +2578,7 @@ gtk_entry_set_icon_from_icon_name (GtkEntry             *entry,
  * gtk_entry_set_icon_from_gicon:
  * @entry: A `GtkEntry`
  * @icon_pos: The position at which to set the icon
- * @icon: (nullable): The icon to set, or %NULL
+ * @icon: (nullable): The icon to set
  *
  * Sets the icon shown in the entry at the specified position
  * from the current icon theme.
@@ -2697,7 +2697,7 @@ gtk_entry_get_icon_activatable (GtkEntry             *entry,
  *
  * If no `GdkPaintable` was used for the icon, %NULL is returned.
  *
- * Returns: (transfer none) (nullable): A `GdkPaintable`, or %NULL
+ * Returns: (transfer none) (nullable): A `GdkPaintable`
  *   if no icon is set for this position or the icon set is not
  *   a `GdkPaintable`.
  */
@@ -2729,8 +2729,7 @@ gtk_entry_get_icon_paintable (GtkEntry             *entry,
  * %NULL will be returned if there is no icon or if the icon was
  * set by some other method (e.g., by `GdkPaintable` or icon name).
  *
- * Returns: (transfer none) (nullable): A `GIcon`, or %NULL if no
- *   icon is set or if the icon is not a `GIcon`
+ * Returns: (transfer none) (nullable): A `GIcon`
  */
 GIcon *
 gtk_entry_get_icon_gicon (GtkEntry             *entry,
@@ -2760,8 +2759,7 @@ gtk_entry_get_icon_gicon (GtkEntry             *entry,
  * %NULL is returned if there is no icon or if the icon was set
  * by some other method (e.g., by `GdkPaintable` or gicon).
  *
- * Returns: (nullable): An icon name, or %NULL if no icon is set
- *   or if the icon wasn’t set from an icon name
+ * Returns: (nullable): An icon name
  */
 const char *
 gtk_entry_get_icon_name (GtkEntry             *entry,
@@ -3061,8 +3059,7 @@ ensure_has_tooltip (GtkEntry *entry)
  * Gets the contents of the tooltip on the icon at the specified
  * position in @entry.
  *
- * Returns: (nullable): the tooltip text, or %NULL. Free the returned
- *   string with g_free() when done.
+ * Returns: (nullable) (transfer full): the tooltip text
  */
 char *
 gtk_entry_get_icon_tooltip_text (GtkEntry             *entry,
@@ -3091,8 +3088,7 @@ gtk_entry_get_icon_tooltip_text (GtkEntry             *entry,
  * gtk_entry_set_icon_tooltip_text:
  * @entry: a `GtkEntry`
  * @icon_pos: the icon position
- * @tooltip: (nullable): the contents of the tooltip for the
- *   icon, or %NULL
+ * @tooltip: (nullable): the contents of the tooltip for the icon
  *
  * Sets @tooltip as the contents of the tooltip for the icon
  * at the specified position.
@@ -3152,8 +3148,7 @@ gtk_entry_set_icon_tooltip_text (GtkEntry             *entry,
  * Gets the contents of the tooltip on the icon at the specified
  * position in @entry.
  *
- * Returns: (nullable): the tooltip text, or %NULL. Free the
- *   returned string with g_free() when done.
+ * Returns: (nullable) (transfer full): the tooltip text
  */
 char *
 gtk_entry_get_icon_tooltip_markup (GtkEntry             *entry,
@@ -3177,8 +3172,7 @@ gtk_entry_get_icon_tooltip_markup (GtkEntry             *entry,
  * gtk_entry_set_icon_tooltip_markup:
  * @entry: a `GtkEntry`
  * @icon_pos: the icon position
- * @tooltip: (nullable): the contents of the tooltip for the
- *   icon, or %NULL
+ * @tooltip: (nullable): the contents of the tooltip for the icon
  *
  * Sets @tooltip as the contents of the tooltip for the icon at
  * the specified position.
@@ -3261,7 +3255,7 @@ gtk_entry_query_tooltip (GtkWidget  *widget,
 /**
  * gtk_entry_set_completion: (attributes org.gtk.Method.set_property=completion)
  * @entry: A `GtkEntry`
- * @completion: (nullable): The `GtkEntryCompletion` or %NULL
+ * @completion: (nullable): The `GtkEntryCompletion`
  *
  * Sets @completion to be the auxiliary completion object
  * to use with @entry.
@@ -3480,8 +3474,7 @@ gtk_entry_progress_pulse (GtkEntry *entry)
 /**
  * gtk_entry_set_placeholder_text: (attributes org.gtk.Method.set_property=placeholder-text)
  * @entry: a `GtkEntry`
- * @text: (nullable): a string to be displayed when @entry is
- *   empty and unfocused, or %NULL
+ * @text: (nullable): a string to be displayed when @entry is empty and unfocused
  *
  * Sets text to be displayed in @entry when it is empty.
  *
@@ -3634,8 +3627,7 @@ gtk_entry_set_attributes (GtkEntry      *entry,
  *
  * See [method@Gtk.Entry.set_attributes].
  *
- * Returns: (transfer none) (nullable): the attribute list,
- *   or %NULL if none was set.
+ * Returns: (transfer none) (nullable): the attribute list
  */
 PangoAttrList *
 gtk_entry_get_attributes (GtkEntry *entry)
@@ -3676,8 +3668,7 @@ gtk_entry_set_tabs (GtkEntry      *entry,
  *
  * See [method@Gtk.Entry.set_tabs].
  *
- * Returns: (nullable) (transfer none): the tabstops,
- *   or %NULL if none was set.
+ * Returns: (nullable) (transfer none): the tabstops
  */
 
 PangoTabArray *
index 113b86464769bbc9810ab78104cf3ea1a0cf0e5b..b96b89574269dd58e2c29b9a6b377a218cc66ba8 100644 (file)
@@ -424,7 +424,7 @@ gtk_entry_buffer_class_init (GtkEntryBufferClass *klass)
 
 /**
  * gtk_entry_buffer_new:
- * @initial_chars: (nullable): initial buffer text, or %NULL
+ * @initial_chars: (nullable): initial buffer text
  * @n_initial_chars: number of characters in @initial_chars, or -1
  *
  * Create a new `GtkEntryBuffer` object.
index 00aeb71934fb6620c81ca58ee2e51e8780d0b107..f64b851a308fd123d0714551ddbbe8c56315a2d9 100644 (file)
@@ -927,8 +927,7 @@ gtk_entry_completion_set_model (GtkEntryCompletion *completion,
  *
  * Returns %NULL if the model is unset.
  *
- * Returns: (nullable) (transfer none): A `GtkTreeModel`, or %NULL if none
- *   is currently being used
+ * Returns: (nullable) (transfer none): A `GtkTreeModel`
  */
 GtkTreeModel *
 gtk_entry_completion_get_model (GtkEntryCompletion *completion)
@@ -1248,7 +1247,7 @@ gtk_entry_completion_cursor_on_match (GtkEntryCompletion *completion,
  * see [method@Gtk.EntryCompletion.set_text_column] for details.
  *
  * Returns: (nullable) (transfer full): The common prefix all rows
- *   starting with @key or %NULL if no row matches @key.
+ *   starting with @key
  */
 char *
 gtk_entry_completion_compute_prefix (GtkEntryCompletion *completion,
index 9a2eac70391d68b8c9ba18429caf652f10a9be8a..173726ea2f98b0fd4cfe36fa7914a3486016c7d0 100644 (file)
@@ -1134,8 +1134,7 @@ gtk_expander_set_label_widget (GtkExpander *expander,
  *
  * Retrieves the label widget for the frame.
  *
- * Returns: (nullable) (transfer none): the label widget,
- *   or %NULL if there is none
+ * Returns: (nullable) (transfer none): the label widget
  */
 GtkWidget *
 gtk_expander_get_label_widget (GtkExpander *expander)
index f52315839ac3e4e9dbdbc5bea137867addffa134..cfe31e889914da4a4ebf54b584448d9c13e51b9c 100644 (file)
@@ -370,7 +370,7 @@ gtk_file_chooser_unselect_all (GtkFileChooser *chooser)
  * gtk_file_chooser_set_current_folder:
  * @chooser: a `GtkFileChooser`
  * @file: the `GFile` for the new folder
- * @error: location to store error, or %NULL.
+ * @error: location to store error
  *
  * Sets the current folder for @chooser from a #GFile.
  *
@@ -450,7 +450,7 @@ gtk_file_chooser_get_files (GtkFileChooser *chooser)
  * gtk_file_chooser_set_file:
  * @chooser: a `GtkFileChooser`
  * @file: the `GFile` to set as current
- * @error: (nullable): location to store the error, or %NULL to ignore errors.
+ * @error: (nullable): location to store the error
  *
  * Sets @file as the current filename for the file chooser.
  *
@@ -546,7 +546,7 @@ gtk_file_chooser_get_file (GtkFileChooser *chooser)
  * gtk_file_chooser_add_shortcut_folder:
  * @chooser: a `GtkFileChooser`
  * @folder: a `GFile` for the folder to add
- * @error: location to store error, or %NULL
+ * @error: location to store error
  *
  * Adds a folder to be displayed with the shortcut folders
  * in a file chooser.
@@ -569,7 +569,7 @@ gtk_file_chooser_add_shortcut_folder (GtkFileChooser  *chooser,
  * gtk_file_chooser_remove_shortcut_folder:
  * @chooser: a `GtkFileChooser`
  * @folder: a `GFile` for the folder to remove
- * @error: location to store error, or %NULL
+ * @error: location to store error
  *
  * Removes a folder from the shortcut folders in a file chooser.
  *
@@ -679,7 +679,7 @@ gtk_file_chooser_set_filter (GtkFileChooser *chooser,
  *
  * Gets the current filter.
  *
- * Returns: (nullable) (transfer none): the current filter, or %NULL
+ * Returns: (nullable) (transfer none): the current filter
  */
 GtkFileFilter *
 gtk_file_chooser_get_filter (GtkFileChooser *chooser)
index ab5b260bcfb0f6e6bc4350b10fef293a43161d89..76f2d3e9011c5acbc92285e93b97d7301b9da611 100644 (file)
@@ -707,10 +707,10 @@ gtk_file_chooser_dialog_new_valist (const char           *title,
 
 /**
  * gtk_file_chooser_dialog_new:
- * @title: (nullable): Title of the dialog, or %NULL
- * @parent: (nullable): Transient parent of the dialog, or %NULL
+ * @title: (nullable): Title of the dialog
+ * @parent: (nullable): Transient parent of the dialog
  * @action: Open or save mode for the dialog
- * @first_button_text: (nullable): text to go in the first button, or %NULL
+ * @first_button_text: (nullable): text to go in the first button
  * @...: response ID for the first button, then additional (button, id) pairs, ending with %NULL
  *
  * Creates a new `GtkFileChooserDialog`.
index 59b0d3461908d657f2582308f560d422707fb8d4..7e9f1ec4731208d4727faa68bc2f4295f865a3fe 100644 (file)
@@ -859,10 +859,9 @@ _gtk_file_chooser_entry_set_base_folder (GtkFileChooserEntry *chooser_entry,
  * be different.  If the user has entered unparsable text, or text which
  * the entry cannot handle, this will return %NULL.
  *
- * Returns: (nullable): the file for the current folder or %NULL if the
- *   current folder can not be determined. Unref the file with
- *   g_object_unref() after use.
- **/
+ * Returns: (nullable) (transfer full): the file for the current folder
+ *   or %NULL if the current folder can not be determined
+ */
 GFile *
 _gtk_file_chooser_entry_get_current_folder (GtkFileChooserEntry *chooser_entry)
 {
index f0c12265e65efc816b993daacb332bd95b7b98e3..0a9cce88e18213a30c864d277c53685791164941 100644 (file)
@@ -217,8 +217,7 @@ G_DEFINE_TYPE_WITH_CODE (GtkFileChooserNative, gtk_file_chooser_native, GTK_TYPE
  *
  * Retrieves the custom label text for the accept button.
  *
- * Returns: (nullable): The custom label, or %NULL for the default.
- *   This string is owned by GTK and should not be modified or freed
+ * Returns: (nullable): The custom label
  */
 const char *
 gtk_file_chooser_native_get_accept_label (GtkFileChooserNative *self)
@@ -231,7 +230,7 @@ gtk_file_chooser_native_get_accept_label (GtkFileChooserNative *self)
 /**
  * gtk_file_chooser_native_set_accept_label: (attributes org.gtk.Method.set_property=accept-label)
  * @self: a `GtkFileChooserNative`
- * @accept_label: (nullable): custom label or %NULL for the default
+ * @accept_label: (nullable): custom label
  *
  * Sets the custom label text for the accept button.
  *
@@ -260,8 +259,7 @@ gtk_file_chooser_native_set_accept_label (GtkFileChooserNative *self,
  *
  * Retrieves the custom label text for the cancel button.
  *
- * Returns: (nullable): The custom label, or %NULL for the default.
- *   This string is owned by GTK and should not be modified or freed
+ * Returns: (nullable): The custom label
  */
 const char *
 gtk_file_chooser_native_get_cancel_label (GtkFileChooserNative *self)
@@ -274,7 +272,7 @@ gtk_file_chooser_native_get_cancel_label (GtkFileChooserNative *self)
 /**
  * gtk_file_chooser_native_set_cancel_label: (attributes org.gtk.Method.set_property=cancel-label)
  * @self: a `GtkFileChooserNative`
- * @cancel_label: (nullable): custom label or %NULL for the default
+ * @cancel_label: (nullable): custom label
  *
  * Sets the custom label text for the cancel button.
  *
@@ -520,8 +518,8 @@ gtk_file_chooser_native_init (GtkFileChooserNative *self)
 
 /**
  * gtk_file_chooser_native_new:
- * @title: (nullable): Title of the native, or %NULL
- * @parent: (nullable): Transient parent of the native, or %NULL
+ * @title: (nullable): Title of the native
+ * @parent: (nullable): Transient parent of the native
  * @action: Open or save mode for the dialog
  * @accept_label: (nullable): text to go in the accept button, or %NULL for the default
  * @cancel_label: (nullable): text to go in the cancel button, or %NULL for the default
index 1d9e8929b2542ef2155809af304e6e6e27122a29..ed933fd03004584d18d9b94a5218664e36c820e3 100644 (file)
@@ -473,9 +473,7 @@ gtk_file_filter_set_name (GtkFileFilter *filter,
  *
  * See [method@Gtk.FileFilter.set_name].
  *
- * Returns: (nullable): The human-readable name of the filter,
- *   or %NULL. This value is owned by GTK and must not
- *   be modified or freed.
+ * Returns: (nullable): The human-readable name of the filter
  */
 const char *
 gtk_file_filter_get_name (GtkFileFilter *filter)
index 64770218818a3ba249b60dcb0c98948ed96adfe8..73e6b3afe0faf216f2dce7a8ad9e98aa7a4e1105 100644 (file)
@@ -1662,7 +1662,7 @@ _gtk_file_system_model_get_file (GtkFileSystemModel *model,
  *
  * Returns: a pointer to the actual value as stored in @model or %NULL
  *   if no value available yet
- **/
+ */
 const GValue *
 _gtk_file_system_model_get_value (GtkFileSystemModel *model,
                                   GtkTreeIter *       iter,
index 0b06f8f4e5155557f2e1b6ad8f6436ae29e60735..06498b31bd269abccd7b54ce1b9e53af4be059f8 100644 (file)
@@ -610,8 +610,8 @@ gtk_filter_list_model_init (GtkFilterListModel *self)
 
 /**
  * gtk_filter_list_model_new:
- * @model: (nullable) (transfer full): the model to sort, or %NULL
- * @filter: (nullable) (transfer full): filter or %NULL to not filter items
+ * @model: (nullable) (transfer full): the model to sort
+ * @filter: (nullable) (transfer full): filter
  *
  * Creates a new `GtkFilterListModel` that will filter @model using the given
  * @filter.
@@ -642,7 +642,7 @@ gtk_filter_list_model_new (GListModel *model,
 /**
  * gtk_filter_list_model_set_filter: (attributes org.gtk.Method.set_property=filter)
  * @self: a `GtkFilterListModel`
- * @filter: (nullable) (transfer none): filter to use or %NULL to not filter items
+ * @filter: (nullable) (transfer none): filter to use
  *
  * Sets the filter used to filter items.
  **/
index ae12abeb144a576ba285574df8a3eccbeda8355c..2231bdd7801a97c23fe8d172da13ee30531a26ba 100644 (file)
@@ -273,7 +273,7 @@ gtk_fixed_get_child_position (GtkFixed  *fixed,
  * gtk_fixed_set_child_transform:
  * @fixed: a `GtkFixed`
  * @widget: a `GtkWidget`, child of @fixed
- * @transform: (nullable): the transformation assigned to @widget or %NULL
+ * @transform: (nullable): the transformation assigned to @widget
  *   to reset @widget's transform
  *
  * Sets the transformation for @widget.
@@ -306,8 +306,7 @@ gtk_fixed_set_child_transform (GtkFixed     *fixed,
  * Retrieves the transformation for @widget set using
  * gtk_fixed_set_child_transform().
  *
- * Returns: (transfer none) (nullable): a `GskTransform` or %NULL
- *   in case no transform has been set on @widget
+ * Returns: (transfer none) (nullable): a `GskTransform`
  */
 GskTransform *
 gtk_fixed_get_child_transform (GtkFixed  *fixed,
index 6d7974d4e6a235488a834c4fe930c4ca9df3c6ae..23b26a35f4693e4df5aa75ebe8d1e9feb40e7c4a 100644 (file)
@@ -447,7 +447,7 @@ gtk_flatten_list_model_new (GListModel *model)
 /**
  * gtk_flatten_list_model_set_model: (attributes org.gtk.Method.set_property=model)
  * @self: a `GtkFlattenListModel`
- * @model: (nullable) (transfer none): the new model or %NULL
+ * @model: (nullable) (transfer none): the new model
  *
  * Sets a new model to be flattened.
  */
index 81736af59a3011dcef02aa01d3028c007cc34fa5..3b01659d280d1dfe867f2b64f467fdbe1b9ee78d 100644 (file)
@@ -181,8 +181,7 @@ gtk_font_chooser_default_init (GtkFontChooserInterface *iface)
  * If the selected font is not installed, returns %NULL.
  *
  * Returns: (nullable) (transfer none): A `PangoFontFamily` representing the
- *   selected font family, or %NULL. The returned object is owned by @fontchooser
- *   and must not be modified or freed.
+ *   selected font family
  */
 PangoFontFamily *
 gtk_font_chooser_get_font_family (GtkFontChooser *fontchooser)
@@ -202,8 +201,7 @@ gtk_font_chooser_get_font_family (GtkFontChooser *fontchooser)
  * If the selected font is not installed, returns %NULL.
  *
  * Returns: (nullable) (transfer none): A `PangoFontFace` representing the
- *   selected font group details, or %NULL. The returned object is owned by
- *   @fontchooser and must not be modified or freed.
+ *   selected font group details
  */
 PangoFontFace *
 gtk_font_chooser_get_font_face (GtkFontChooser *fontchooser)
@@ -246,8 +244,7 @@ gtk_font_chooser_get_font_size (GtkFontChooser *fontchooser)
  * font descriptions.
  *
  * Returns: (nullable) (transfer full): A string with the name
- *   of the current font, or %NULL if  no font is selected. You must
- *   free this string with g_free().
+ *   of the current font
  */
 char *
 gtk_font_chooser_get_font (GtkFontChooser *fontchooser)
@@ -295,7 +292,7 @@ gtk_font_chooser_set_font (GtkFontChooser *fontchooser,
  * font descriptions.
  *
  * Returns: (nullable) (transfer full): A `PangoFontDescription` for the
- *   current font, or %NULL if  no font is selected.
+ *   current font
  */
 PangoFontDescription *
 gtk_font_chooser_get_font_desc (GtkFontChooser *fontchooser)
@@ -405,7 +402,7 @@ gtk_font_chooser_set_show_preview_entry (GtkFontChooser *fontchooser,
 /**
  * gtk_font_chooser_set_filter_func:
  * @fontchooser: a `GtkFontChooser`
- * @filter: (nullable): a `GtkFontFilterFunc`, or %NULL
+ * @filter: (nullable): a `GtkFontFilterFunc`
  * @user_data: (closure): data to pass to @filter
  * @destroy: function to call to free @data when it is no longer needed
  *
@@ -484,7 +481,7 @@ gtk_font_chooser_set_font_map (GtkFontChooser *fontchooser,
  * Gets the custom font map of this font chooser widget,
  * or %NULL if it does not have one.
  *
- * Returns: (nullable) (transfer full): a `PangoFontMap`, or %NULL
+ * Returns: (nullable) (transfer full): a `PangoFontMap`
  */
 PangoFontMap *
 gtk_font_chooser_get_font_map (GtkFontChooser *fontchooser)
index 9e703976b57e4aa6db82b0f34b037bd99a05f7af..e731df8e45e4ccb4ebed99ed7e07f71740cdd640 100644 (file)
@@ -281,8 +281,8 @@ gtk_font_chooser_dialog_init (GtkFontChooserDialog *dialog)
 
 /**
  * gtk_font_chooser_dialog_new:
- * @title: (nullable): Title of the dialog, or %NULL
- * @parent: (nullable): Transient parent of the dialog, or %NULL
+ * @title: (nullable): Title of the dialog
+ * @parent: (nullable): Transient parent of the dialog
  *
  * Creates a new `GtkFontChooserDialog`.
  *
index 2c1542c9e269c64459cfab53942fbf29226926ec..428ca8be73ef3e6e65472b884ecc2608545993e7 100644 (file)
@@ -448,8 +448,7 @@ gtk_frame_set_label_widget (GtkFrame  *frame,
  *
  * Retrieves the label widget for the frame.
  *
- * Returns: (nullable) (transfer none): the label widget, or %NULL if
- * there is none.
+ * Returns: (nullable) (transfer none): the label widget
  */
 GtkWidget *
 gtk_frame_get_label_widget (GtkFrame *frame)
index caf1bd9f21b39e26c9bf0e0ac3576ba52ce66ee1..2dc5b3756cf8b5e1ae574497a68e1e996eb925fe 100644 (file)
@@ -919,7 +919,7 @@ gtk_gesture_init (GtkGesture *gesture)
  *
  * This returns %NULL if the gesture is not being interacted.
  *
- * Returns: (nullable) (transfer none): a `GdkDevice`, or %NULL
+ * Returns: (nullable) (transfer none): a `GdkDevice`
  */
 GdkDevice *
 gtk_gesture_get_device (GtkGesture *gesture)
@@ -1450,7 +1450,7 @@ _gtk_gesture_check (GtkGesture *gesture)
 /**
  * gtk_gesture_handles_sequence:
  * @gesture: a `GtkGesture`
- * @sequence: (nullable): a `GdkEventSequence` or %NULL
+ * @sequence: (nullable): a `GdkEventSequence`
  *
  * Returns %TRUE if @gesture is currently handling events
  * corresponding to @sequence.
index 9c808e8f6a71c6e03951ffeadc7e667b15bcd41e..8782ff7e8a29ab6411f2e0c44f718a00b9be0362 100644 (file)
@@ -1019,7 +1019,7 @@ gtk_gl_area_set_error (GtkGLArea    *area,
  *
  * Gets the current error set on the @area.
  *
- * Returns: (nullable) (transfer none): the #GError or %NULL
+ * Returns: (nullable) (transfer none): the #GError
  */
 GError *
 gtk_gl_area_get_error (GtkGLArea *area)
index 25374f178b71094d1d2eefeb23fef55745f3cf1b..9e86a58a62727692f34cabe99139b93bea96444e 100644 (file)
@@ -682,7 +682,7 @@ gtk_grid_attach_next_to (GtkGrid         *grid,
  * Gets the child of @grid whose area covers the grid
  * cell at @column, @row.
  *
- * Returns: (transfer none) (nullable): the child at the given position, or %NULL
+ * Returns: (transfer none) (nullable): the child at the given position
  */
 GtkWidget *
 gtk_grid_get_child_at (GtkGrid *grid,
index fe7ad3a1e9dd26be0d7ab8a3a73e8b2c33337ab3..c6cefbb10ed9b08f42bdbeb71bb574248eb23e0b 100644 (file)
@@ -214,7 +214,7 @@ cell_augment (GtkRbTree *tree,
  * In particular that means that for an empty grid, %NULL is returned
  * for any value.
  *
- * Returns: (nullable): The first cell at offset y or %NULL if none
+ * Returns: (nullable): The first cell at offset y
  **/
 static Cell *
 gtk_grid_view_get_cell_at_y (GtkGridView *self,
@@ -1185,8 +1185,8 @@ gtk_grid_view_init (GtkGridView *self)
 
 /**
  * gtk_grid_view_new:
- * @model: (nullable) (transfer full): the model to use, or %NULL
- * @factory: (nullable) (transfer full): The factory to populate items with, or %NULL
+ * @model: (nullable) (transfer full): the model to use
+ * @factory: (nullable) (transfer full): The factory to populate items with
  *
  * Creates a new `GtkGridView` that uses the given @factory for
  * mapping items to widgets.
@@ -1240,7 +1240,7 @@ gtk_grid_view_get_model (GtkGridView *self)
 /**
  * gtk_grid_view_set_model: (attributes org.gtk.Method.set_property=model)
  * @self: a `GtkGridView`
- * @model: (nullable) (transfer none): the model to use or %NULL for none
+ * @model: (nullable) (transfer none): the model to use
  *
  * Sets the imodel to use.
  *
@@ -1282,7 +1282,7 @@ gtk_grid_view_get_factory (GtkGridView *self)
 /**
  * gtk_grid_view_set_factory: (attributes org.gtk.Method.set_property=factory)
  * @self: a `GtkGridView`
- * @factory: (nullable) (transfer none): the factory to use or %NULL for none
+ * @factory: (nullable) (transfer none): the factory to use
  *
  * Sets the `GtkListItemFactory` to use for populating list items.
  */
index abba4d4d1d31f17cfd0bd7021a183432b9b5f384..12f24ee1c0551135b618c27dc8e88ad13c9f2024 100644 (file)
@@ -338,8 +338,7 @@ gtk_header_bar_set_title_widget (GtkHeaderBar *bar,
  *
  * See [method@Gtk.HeaderBar.set_title_widget].
  *
- * Returns: (nullable) (transfer none): the title widget
- *   of the header, or %NULL if none has been set explicitly.
+ * Returns: (nullable) (transfer none): the title widget of the header
  */
 GtkWidget *
 gtk_header_bar_get_title_widget (GtkHeaderBar *bar)
@@ -769,8 +768,7 @@ gtk_header_bar_set_show_title_buttons (GtkHeaderBar *bar,
 /**
  * gtk_header_bar_set_decoration_layout: (attributes org.gtk.Method.set_property=decoration-layout)
  * @bar: a `GtkHeaderBar`
- * @layout: (nullable): a decoration layout, or %NULL to
- *   unset the layout
+ * @layout: (nullable): a decoration layout, or %NULL to unset the layout
  *
  * Sets the decoration layout for this header bar.
  *
index 26ff0d52b470e6d6da185978649af906d29b41b6..3e03c231b1a0e4796f06e9d9db61fc5bf64d8f68 100644 (file)
@@ -1484,8 +1484,7 @@ gtk_icon_theme_set_search_path (GtkIconTheme       *self,
  * See [method@Gtk.IconTheme.set_search_path].
  *
  * Returns: (transfer full) (array zero-terminated=1) (element-type filename) (nullable):
- *   a list of icon theme path directories or %NULL.
- *   The returned value should be freed with g_strfreev().
+ *   a list of icon theme path directories
  */
 char **
 gtk_icon_theme_get_search_path (GtkIconTheme  *self)
@@ -1581,8 +1580,7 @@ gtk_icon_theme_set_resource_path (GtkIconTheme       *self,
  * See [method@Gtk.IconTheme.set_resource_path].
  *
  * Returns: (transfer full) (array zero-terminated=1) (element-type utf8) (nullable):
- *   A list of resource paths or %NULL.
- *   The returned value should be freed with g_strfreev().
+ *   A list of resource paths
  */
 char **
 gtk_icon_theme_get_resource_path (GtkIconTheme  *self)
@@ -3679,8 +3677,7 @@ new_resource_file (const char *filename)
  *
  * Returns %NULL if the icon was not loaded from a file.
  *
- * Returns: (nullable) (transfer full): the #GFile for the icon, or %NULL.
- *    Free with g_object_unref().
+ * Returns: (nullable) (transfer full): the #GFile for the icon
  */
 GFile *
 gtk_icon_paintable_get_file (GtkIconPaintable *icon)
index fa26588e8f0aee2d48d3318e2b919a1c37de4b0f..095c19a271a39ed1621b996f83915ef3a1cdcfa1 100644 (file)
@@ -1955,7 +1955,7 @@ gtk_icon_view_remove_editable (GtkCellArea            *area,
  * gtk_icon_view_set_cursor:
  * @icon_view: A #GtkIconView
  * @path: A #GtkTreePath
- * @cell: (nullable): One of the cell renderers of @icon_view, or %NULL
+ * @cell: (nullable): One of the cell renderers of @icon_view
  * @start_editing: %TRUE if the specified cell should start being edited.
  *
  * Sets the current keyboard focus to be at @path, and selects it.  This is
@@ -4110,9 +4110,9 @@ gtk_icon_view_get_path_at_pos (GtkIconView *icon_view,
  * @icon_view: A #GtkIconView.
  * @x: The x position to be identified
  * @y: The y position to be identified
- * @path: (out) (optional): Return location for the path, or %NULL
+ * @path: (out) (optional): Return location for the path
  * @cell: (out) (optional) (transfer none): Return location for the renderer
- *   responsible for the cell at (@x, @y), or %NULL
+ *   responsible for the cell at (@x, @y)
  *
  * Gets the path and cell for the icon at the given position.
  *
@@ -4150,7 +4150,7 @@ gtk_icon_view_get_item_at_pos (GtkIconView      *icon_view,
  * gtk_icon_view_get_cell_rect:
  * @icon_view: a #GtkIconView
  * @path: a #GtkTreePath
- * @cell: (nullable): a #GtkCellRenderer or %NULL
+ * @cell: (nullable): a #GtkCellRenderer
  * @rect: (out): rectangle to fill with cell rect
  *
  * Fills the bounding rectangle in widget coordinates for the cell specified by
@@ -4225,7 +4225,7 @@ gtk_icon_view_set_tooltip_item (GtkIconView     *icon_view,
  * @icon_view: a #GtkIconView
  * @tooltip: a #GtkTooltip
  * @path: a #GtkTreePath
- * @cell: (nullable): a #GtkCellRenderer or %NULL
+ * @cell: (nullable): a #GtkCellRenderer
  *
  * Sets the tip area of @tooltip to the area which @cell occupies in
  * the item pointed to by @path. See also gtk_tooltip_set_tip_area().
@@ -6368,7 +6368,7 @@ gtk_icon_view_unset_model_drag_dest (GtkIconView *icon_view)
 /**
  * gtk_icon_view_set_drag_dest_item:
  * @icon_view: a #GtkIconView
- * @path: (nullable): The path of the item to highlight, or %NULL.
+ * @path: (nullable): The path of the item to highlight
  * @pos: Specifies where to drop, relative to the item
  *
  * Sets the item that is highlighted for feedback.
@@ -6455,9 +6455,8 @@ gtk_icon_view_get_drag_dest_item (GtkIconView              *icon_view,
  * @icon_view: a #GtkIconView
  * @drag_x: the position to determine the destination item for
  * @drag_y: the position to determine the destination item for
- * @path: (out) (optional): Return location for the path of the item,
- *    or %NULL.
- * @pos: (out) (optional): Return location for the drop position, or %NULL
+ * @path: (out) (optional): Return location for the path of the item
+ * @pos: (out) (optional): Return location for the drop position
  * 
  * Determines the destination item for a given position.
  * 
index 016bdc3b86b8a6b3c8b88cd1639b020624fbeeba..6f82934e0cc2e14c2fa640663187f8ad3c1271b7 100644 (file)
@@ -477,7 +477,7 @@ gtk_image_new_from_resource (const char *resource_path)
 
 /**
  * gtk_image_new_from_pixbuf:
- * @pixbuf: (nullable): a `GdkPixbuf`, or %NULL
+ * @pixbuf: (nullable): a `GdkPixbuf`
  *
  * Creates a new `GtkImage` displaying @pixbuf.
  *
@@ -508,7 +508,7 @@ gtk_image_new_from_pixbuf (GdkPixbuf *pixbuf)
 
 /**
  * gtk_image_new_from_paintable:
- * @paintable: (nullable): a `GdkPaintable`, or %NULL
+ * @paintable: (nullable): a `GdkPaintable`
  *
  * Creates a new `GtkImage` displaying @paintable.
  *
@@ -535,7 +535,7 @@ gtk_image_new_from_paintable (GdkPaintable *paintable)
 
 /**
  * gtk_image_new_from_icon_name:
- * @icon_name: (nullable): an icon name or %NULL
+ * @icon_name: (nullable): an icon name
  *
  * Creates a `GtkImage` displaying an icon from the current icon theme.
  *
@@ -584,7 +584,7 @@ gtk_image_new_from_gicon (GIcon *icon)
 /**
  * gtk_image_set_from_file: (attributes org.gtk.Method.set_property=file)
  * @image: a `GtkImage`
- * @filename: (type filename) (nullable): a filename or %NULL
+ * @filename: (type filename) (nullable): a filename
  *
  * Sets a `GtkImage` to show a file.
  *
@@ -662,7 +662,7 @@ out:
 /**
  * gtk_image_set_from_resource: (attributes org.gtk.Method.set_property=resource)
  * @image: a `GtkImage`
- * @resource_path: (nullable): a resource path or %NULL
+ * @resource_path: (nullable): a resource path
  *
  * Sets a `GtkImage` to show a resource.
  *
@@ -753,7 +753,7 @@ gtk_image_set_from_pixbuf (GtkImage  *image,
 /**
  * gtk_image_set_from_icon_name: (attributes org.gtk.Method.set_property=icon-name)
  * @image: a `GtkImage`
- * @icon_name: (nullable): an icon name or %NULL
+ * @icon_name: (nullable): an icon name
  *
  * Sets a `GtkImage` to show a named icon.
  *
@@ -827,7 +827,7 @@ gtk_image_paintable_invalidate_size (GdkPaintable *paintable,
 /**
  * gtk_image_set_from_paintable: (attributes org.gtk.Method.set_property=paintable)
  * @image: a `GtkImage`
- * @paintable: (nullable): a `GdkPaintable` or %NULL
+ * @paintable: (nullable): a `GdkPaintable`
  *
  * Sets a `GtkImage` to show a `GdkPaintable`.
  *
@@ -903,8 +903,7 @@ gtk_image_get_storage_type (GtkImage *image)
  * The caller of this function does not own a reference to the
  * returned paintable.
  *
- * Returns: (nullable) (transfer none): the displayed paintable,
- *   or %NULL if the image is empty
+ * Returns: (nullable) (transfer none): the displayed paintable
  */
 GdkPaintable *
 gtk_image_get_paintable (GtkImage *image)
@@ -925,7 +924,7 @@ gtk_image_get_paintable (GtkImage *image)
  * The returned string is owned by the `GtkImage` and should not
  * be freed.
  *
- * Returns: (transfer none) (nullable): the icon name, or %NULL
+ * Returns: (transfer none) (nullable): the icon name
  */
 const char *
 gtk_image_get_icon_name (GtkImage *image)
@@ -946,7 +945,7 @@ gtk_image_get_icon_name (GtkImage *image)
  * The caller of this function does not own a reference to the
  * returned `GIcon`.
  *
- * Returns: (transfer none) (nullable): a `GIcon`, or %NULL
+ * Returns: (transfer none) (nullable): a `GIcon`
  **/
 GIcon *
 gtk_image_get_gicon (GtkImage *image)
index 82061f77c65fc637174bdc5c21e993f1eb46aee4..0389ba5e0ce706fb1069078c0dde23c1d6ff7586 100644 (file)
@@ -702,7 +702,7 @@ gtk_info_bar_new (void)
 
 /**
  * gtk_info_bar_new_with_buttons:
- * @first_button_text: (nullable): ext to go in first button, or %NULL
+ * @first_button_text: (nullable): ext to go in first button
  * @...: response ID for first button, then additional buttons, ending
  *    with %NULL
  *
index 68148491c049c1cebd4cbe2299cf9ae17c71d8f9..8e1570b47ef93f1dcd07045351c9cd611ad2130e 100644 (file)
@@ -3043,7 +3043,7 @@ gtk_label_set_text (GtkLabel    *self,
 /**
  * gtk_label_set_attributes: (attributes org.gtk.Method.set_property=attributes)
  * @self: a `GtkLabel`
- * @attrs: (nullable): a [struct@Pango.AttrList], or %NULL
+ * @attrs: (nullable): a [struct@Pango.AttrList]
  *
  * Apply attributes to the label text.
  *
@@ -3089,8 +3089,7 @@ gtk_label_set_attributes (GtkLabel         *self,
  * attributes for the label, use
  * `pango_layout_get_attribute (gtk_label_get_layout (self))`.
  *
- * Returns: (nullable) (transfer none): the attribute list, or %NULL
- *   if none was set.
+ * Returns: (nullable) (transfer none): the attribute list
  */
 PangoAttrList *
 gtk_label_get_attributes (GtkLabel *self)
@@ -5011,8 +5010,8 @@ gtk_label_get_layout (GtkLabel *self)
 /**
  * gtk_label_get_layout_offsets:
  * @self: a `GtkLabel`
- * @x: (out) (optional): location to store X offset of layout, or %NULL
- * @y: (out) (optional): location to store Y offset of layout, or %NULL
+ * @x: (out) (optional): location to store X offset of layout
+ * @y: (out) (optional): location to store Y offset of layout
  *
  * Obtains the coordinates where the label will draw its `PangoLayout`.
  *
@@ -5549,8 +5548,7 @@ gtk_label_do_popup (GtkLabel *self,
  * This function is intended for use in a [signal@Gtk.Label::activate-link]
  * handler or for use in a [signal@Gtk.Widget::query-tooltip] handler.
  *
- * Returns: (nullable): the currently active URI or %NULL if there is none.
- *   The string is owned by GTK and must not be freed or modified.
+ * Returns: (nullable): the currently active URI
  */
 const char *
 gtk_label_get_current_uri (GtkLabel *self)
index 0a0992f0b4a9d597050b2d795463080d1c11622b..4513892e32e18c3b1529e808b5ada754fb6f417e 100644 (file)
@@ -760,7 +760,7 @@ gtk_list_box_init (GtkListBox *box)
  * case you should use [method@Gtk.ListBox.selected_foreach] to
  * find all selected rows.
  *
- * Returns: (transfer none) (nullable): the selected row or %NULL
+ * Returns: (transfer none) (nullable): the selected row
  */
 GtkListBoxRow *
 gtk_list_box_get_selected_row (GtkListBox *box)
@@ -780,7 +780,7 @@ gtk_list_box_get_selected_row (GtkListBox *box)
  * If @index_ is negative or larger than the number of items in the
  * list, %NULL is returned.
  *
- * Returns: (transfer none) (nullable): the child `GtkWidget` or %NULL
+ * Returns: (transfer none) (nullable): the child `GtkWidget`
  */
 GtkListBoxRow *
 gtk_list_box_get_row_at_index (GtkListBox *box,
@@ -821,8 +821,7 @@ row_y_cmp_func (gconstpointer a,
  *
  * Gets the row at the @y position.
  *
- * Returns: (transfer none) (nullable): the row or %NULL
- *   in case no row exists for the given y coordinate.
+ * Returns: (transfer none) (nullable): the row
  */
 GtkListBoxRow *
 gtk_list_box_get_row_at_y (GtkListBox *box,
@@ -846,7 +845,7 @@ gtk_list_box_get_row_at_y (GtkListBox *box,
 /**
  * gtk_list_box_select_row:
  * @box: a `GtkListBox`
- * @row: (nullable): The row to select or %NULL
+ * @row: (nullable): The row to select
  *
  * Make @row the currently selected row.
  */
@@ -1014,7 +1013,7 @@ gtk_list_box_get_selected_rows (GtkListBox *box)
 /**
  * gtk_list_box_set_placeholder:
  * @box: a `GtkListBox`
- * @placeholder: (nullable): a #GtkWidget or %NULL
+ * @placeholder: (nullable): a #GtkWidget
  *
  * Sets the placeholder widget that is shown in the list when
  * it doesn't display any visible children.
@@ -1045,7 +1044,7 @@ gtk_list_box_set_placeholder (GtkListBox *box,
 /**
  * gtk_list_box_set_adjustment:
  * @box: a `GtkListBox`
- * @adjustment: (nullable): the adjustment, or %NULL
+ * @adjustment: (nullable): the adjustment
  *
  * Sets the adjustment (if any) that the widget uses to
  * for vertical scrolling.
@@ -3154,7 +3153,7 @@ gtk_list_box_row_changed (GtkListBoxRow *row)
  * there is a header set already, and if so to update
  * the state of it.
  *
- * Returns: (transfer none) (nullable): the current header, or %NULL if none
+ * Returns: (transfer none) (nullable): the current header
  */
 GtkWidget *
 gtk_list_box_row_get_header (GtkListBoxRow *row)
@@ -3167,7 +3166,7 @@ gtk_list_box_row_get_header (GtkListBoxRow *row)
 /**
  * gtk_list_box_row_set_header:
  * @row: a `GtkListBoxRow`
- * @header: (nullable): the header, or %NULL
+ * @header: (nullable): the header
  *
  * Sets the current header of the @row.
  *
index 5b64bfefe56fa975e795dc35761359d7d54dbcb3..32af78e5e2f67b7f1d57f08869760cc2874bde8e 100644 (file)
@@ -1284,7 +1284,7 @@ gtk_list_store_insert (GtkListStore *list_store,
  * gtk_list_store_insert_before:
  * @list_store: A #GtkListStore
  * @iter: (out): An unset #GtkTreeIter to set to the new row
- * @sibling: (nullable): A valid #GtkTreeIter, or %NULL
+ * @sibling: (nullable): A valid #GtkTreeIter
  *
  * Inserts a new row before @sibling. If @sibling is %NULL, then the row will 
  * be appended to the end of the list. @iter will be changed to point to this 
@@ -1320,7 +1320,7 @@ gtk_list_store_insert_before (GtkListStore *list_store,
  * gtk_list_store_insert_after:
  * @list_store: A #GtkListStore
  * @iter: (out): An unset #GtkTreeIter to set to the new row
- * @sibling: (nullable): A valid #GtkTreeIter, or %NULL
+ * @sibling: (nullable): A valid #GtkTreeIter
  *
  * Inserts a new row after @sibling. If @sibling is %NULL, then the row will be
  * prepended to the beginning of the list. @iter will be changed to point to
@@ -1840,7 +1840,7 @@ gtk_list_store_move_to (GtkListStore *store,
  * gtk_list_store_move_before:
  * @store: A #GtkListStore.
  * @iter: A #GtkTreeIter.
- * @position: (nullable): A #GtkTreeIter, or %NULL.
+ * @position: (nullable): A #GtkTreeIter
  *
  * Moves @iter in @store to the position before @position. Note that this
  * function only works with unsorted stores. If @position is %NULL, @iter
@@ -1871,7 +1871,7 @@ gtk_list_store_move_before (GtkListStore *store,
  * gtk_list_store_move_after:
  * @store: A #GtkListStore.
  * @iter: A #GtkTreeIter.
- * @position: (nullable): A #GtkTreeIter or %NULL.
+ * @position: (nullable): A #GtkTreeIter
  *
  * Moves @iter in @store to the position after @position. Note that this
  * function only works with unsorted stores. If @position is %NULL, @iter
index 94797953cf3ba63632ea3f99d858d60c158aa0de..1868bdc36ed38bf961e34f1eaa11a5f511588f53 100644 (file)
@@ -926,8 +926,8 @@ gtk_list_view_init (GtkListView *self)
 
 /**
  * gtk_list_view_new:
- * @model: (nullable) (transfer full): the model to use, or %NULL
- * @factory: (nullable) (transfer full): The factory to populate items with, or %NULL
+ * @model: (nullable) (transfer full): the model to use
+ * @factory: (nullable) (transfer full): The factory to populate items with
  *
  * Creates a new `GtkListView` that uses the given @factory for
  * mapping items to widgets.
@@ -981,7 +981,7 @@ gtk_list_view_get_model (GtkListView *self)
 /**
  * gtk_list_view_set_model: (attributes org.gtk.Method.set_property=model)
  * @self: a `GtkListView`
- * @model: (nullable) (transfer none): the model to use or %NULL for none
+ * @model: (nullable) (transfer none): the model to use
  *
  * Sets the model to use.
  *
@@ -1023,7 +1023,7 @@ gtk_list_view_get_factory (GtkListView *self)
 /**
  * gtk_list_view_set_factory: (attributes org.gtk.Method.set_property=factory)
  * @self: a `GtkListView`
- * @factory: (nullable) (transfer none): the factory to use or %NULL for none
+ * @factory: (nullable) (transfer none): the factory to use
  *
  * Sets the `GtkListItemFactory` to use for populating list items.
  */
index 015c0e9f88049a10ff56892565dd258c4ae0e651..5862e866d8a99bba05019c6900499f9c78736be7 100644 (file)
@@ -548,7 +548,7 @@ gtk_lock_button_get_permission (GtkLockButton *button)
 /**
  * gtk_lock_button_set_permission: (attributes org.gtk.Method.set_property=permission)
  * @button: a `GtkLockButton`
- * @permission: (nullable): a `GPermission` object, or %NULL
+ * @permission: (nullable): a `GPermission` object
  *
  * Sets the `GPermission` object that controls @button.
  */
index cf0e3479563b8aa04e036d51bb883847c045fff4..6ea63ab6d3b4f801fbae936cdd85013999aa49f1 100644 (file)
@@ -1789,7 +1789,7 @@ gtk_get_current_event_time (void)
  * originally.
  *
  * Returns: (transfer none) (nullable): the widget that originally
- *   received @event, or %NULL
+ *   received @event
  */
 GtkWidget *
 gtk_get_event_widget (GdkEvent *event)
index 553a53ee9de3110f358c9a8e0e20bc7f22e7bcb7..72dea556166968b931f80ae7d7b53cdd2940c2e7 100644 (file)
@@ -410,8 +410,8 @@ gtk_map_list_model_augment (GtkRbTree *map,
 
 /**
  * gtk_map_list_model_new:
- * @model: (transfer full) (nullable): The model to map or %NULL for none
- * @map_func: (nullable): map function or %NULL to not map items
+ * @model: (transfer full) (nullable): The model to map
+ * @map_func: (nullable): map function
  * @user_data: (closure): user data passed to @map_func
  * @user_destroy: destroy notifier for @user_data
  *
@@ -488,7 +488,7 @@ gtk_map_list_model_init_items (GtkMapListModel *self)
 /**
  * gtk_map_list_model_set_map_func:
  * @self: a `GtkMapListModel`
- * @map_func: (nullable): map function or %NULL to not map items
+ * @map_func: (nullable): map function
  * @user_data: (closure): user data passed to @map_func
  * @user_destroy: destroy notifier for @user_data
  *
index 86b0dbf7f6cf2b971cf4b60fb0f43f16e1780336..8fd3329296082ccf5f7f6a2653e28dae49770280 100644 (file)
@@ -480,7 +480,7 @@ gtk_media_controls_notify_cb (GtkMediaStream   *stream,
 /**
  * gtk_media_controls_set_media_stream: (attributes org.gtk.Method.set_property=media-stream)
  * @controls: a `GtkMediaControls` widget
- * @stream: (nullable):  a `GtkMediaStream`, or %NULL
+ * @stream: (nullable):  a `GtkMediaStream`
  *
  * Sets the stream that is controlled by @controls.
  */
index 8c64e221fa62695323cdedc7d2ca83e878f057a5..079e1b367d558ad2d2cddfdbe81931a3af6dc09f 100644 (file)
@@ -534,7 +534,6 @@ gtk_media_file_set_file (GtkMediaFile *self,
  * %NULL is returned.
  *
  * Returns: (nullable) (transfer none): The currently playing file
- *   or %NULL if not playing from a file.
  */
 GFile *
 gtk_media_file_get_file (GtkMediaFile *self)
@@ -594,8 +593,7 @@ gtk_media_file_set_input_stream (GtkMediaFile *self,
  * When @self is not playing or not playing from a stream,
  * %NULL is returned.
  *
- * Returns: (nullable) (transfer none): The currently playing
- *   stream or %NULL if not playing from a stream.
+ * Returns: (nullable) (transfer none): The currently playing stream
  */
 GInputStream *
 gtk_media_file_get_input_stream (GtkMediaFile *self)
index 6024068c2d169cd2421217679e2b0de3c172cb87..2566c7cb000fb4a4dd42b1b30b65e749bed92f8d 100644 (file)
@@ -600,7 +600,7 @@ gtk_menu_button_set_menu_model (GtkMenuButton *menu_button,
  *
  * Returns the `GMenuModel` used to generate the popup.
  *
- * Returns: (nullable) (transfer none): a `GMenuModel` or %NULL
+ * Returns: (nullable) (transfer none): a `GMenuModel`
  */
 GMenuModel *
 gtk_menu_button_get_menu_model (GtkMenuButton *menu_button)
index 1ff504dcf6f3d63991b3872624025e7b2d08b014..463d14b3a98b424b6454174ac4817de19564c07a 100644 (file)
@@ -478,11 +478,11 @@ gtk_message_dialog_init (GtkMessageDialog *dialog)
 
 /**
  * gtk_message_dialog_new:
- * @parent: (nullable): transient parent, or %NULL for none
+ * @parent: (nullable): transient parent
  * @flags: flags
  * @type: type of message
  * @buttons: set of buttons to use
- * @message_format: (nullable): printf()-style format string, or %NULL
+ * @message_format: (nullable): printf()-style format string
  * @...: arguments for @message_format
  *
  * Creates a new message dialog.
@@ -542,11 +542,11 @@ gtk_message_dialog_new (GtkWindow     *parent,
 
 /**
  * gtk_message_dialog_new_with_markup:
- * @parent: (nullable): transient parent, or %NULL for none
+ * @parent: (nullable): transient parent
  * @flags: flags
  * @type: type of message
  * @buttons: set of buttons to use
- * @message_format: (nullable): printf()-style format string, or %NULL
+ * @message_format: (nullable): printf()-style format string
  * @...: arguments for @message_format
  *
  * Creates a new message dialog.
@@ -632,7 +632,7 @@ gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog,
 /**
  * gtk_message_dialog_format_secondary_text:
  * @message_dialog: a `GtkMessageDialog`
- * @message_format: (nullable): printf()-style format string, or %NULL
+ * @message_format: (nullable): printf()-style format string
  * @...: arguments for @message_format
  *
  * Sets the secondary text of the message dialog.
index 7ea76bb56dffd98a4c2761fbf16fcc37dc05098d..baa4f785e53de7009fb6f4853ae1c2ef2efaed89 100644 (file)
@@ -1790,7 +1790,7 @@ gtk_mount_operation_aborted (GMountOperation *op)
 
 /**
  * gtk_mount_operation_new:
- * @parent: (nullable): transient parent of the window, or %NULL
+ * @parent: (nullable): transient parent of the window
  *
  * Creates a new `GtkMountOperation`.
  *
@@ -1827,7 +1827,7 @@ gtk_mount_operation_is_showing (GtkMountOperation *op)
 /**
  * gtk_mount_operation_set_parent: (attributes org.gtk.Method.set_property=parent)
  * @op: a `GtkMountOperation`
- * @parent: (nullable): transient parent of the window, or %NULL
+ * @parent: (nullable): transient parent of the window
  *
  * Sets the transient parent for windows shown by the
  * `GtkMountOperation`.
index 04ee89d7f5006a8468f9ac197b3fa5de6e34a8b8..26590ec55feb9aed2d842b76371a20e40f6353be 100644 (file)
@@ -367,7 +367,7 @@ gtk_multi_selection_init (GtkMultiSelection *self)
 
 /**
  * gtk_multi_selection_new:
- * @model: (nullable) (transfer full): the `GListModel` to manage, or %NULL
+ * @model: (nullable) (transfer full): the `GListModel` to manage
  *
  * Creates a new selection to handle @model.
  *
index 308d6fe46081fc623dd4b639e3a6ec70210179ec..1c687e07532919e17f339037a0a0b56c4ddd6903 100644 (file)
@@ -501,7 +501,7 @@ parent_destroyed (GtkWidget       *parent,
 /**
  * gtk_native_dialog_set_transient_for: (attributes org.gtk.Method.set_property=transient-for)
  * @self: a `GtkNativeDialog`
- * @parent: (nullable): parent window, or %NULL
+ * @parent: (nullable): parent window
  *
  * Dialog windows should be set transient for the main application
  * window they were spawned from.
index 2184ea275a426f61573f4a580933deaa77171c72..7727ccc00b79f286aa9ea810f6a0cb2fbf9aa869 100644 (file)
@@ -213,7 +213,7 @@ gtk_no_selection_init (GtkNoSelection *self)
 
 /**
  * gtk_no_selection_new:
- * @model: (nullable) (transfer full): the `GListModel` to manage, or %NULL
+ * @model: (nullable) (transfer full): the `GListModel` to manage
  *
  * Creates a new selection to handle @model.
  *
index 7cd69ca87a25e8b442cf1875339e544c70c42a7c..d62c38f2aa80141dc68d6103c63fb0885ae6a660 100644 (file)
@@ -1376,8 +1376,8 @@ gtk_notebook_class_init (GtkNotebookClass *class)
    * necessary properties to the notebook (e.g. the
    * `GtkNotebook`:group-name ).
    *
-   * Returns: (transfer none): a `GtkNotebook` that @page should be
-   *     added to, or %NULL.
+   * Returns: (nullable) (transfer none): a `GtkNotebook` that
+   *   @page should be added to
    */
   notebook_signals[CREATE_WINDOW] =
     g_signal_new (I_("create-window"),
index 688bb3861430c49b27d24c14ff971acd66378fd4..bc1227b343c5adc2dd94d3d0e457d8068501234b 100644 (file)
@@ -607,7 +607,7 @@ gtk_numeric_sorter_new (GtkExpression *expression)
  *
  * Gets the expression that is evaluated to obtain numbers from items.
  *
- * Returns: (transfer none) (nullable): a `GtkExpression`, or %NULL
+ * Returns: (transfer none) (nullable): a `GtkExpression`
  */
 GtkExpression *
 gtk_numeric_sorter_get_expression (GtkNumericSorter *self)
@@ -620,7 +620,7 @@ gtk_numeric_sorter_get_expression (GtkNumericSorter *self)
 /**
  * gtk_numeric_sorter_set_expression: (attributes org.gtk.Method.set_property=expression)
  * @self: a `GtkNumericSorter`
- * @expression: (nullable) (transfer none): a `GtkExpression`, or %NULL
+ * @expression: (nullable) (transfer none): a `GtkExpression`
  *
  * Sets the expression that is evaluated to obtain numbers from items.
  *
index 18d1c4c4b38ad76a31eef3d4bb3f2e78639bfa69..d106edab9aefe56f4cf40b86d5201851e67d93b2 100644 (file)
@@ -491,7 +491,7 @@ gtk_page_setup_get_page_height (GtkPageSetup *setup,
  * gtk_page_setup_load_file:
  * @setup: a `GtkPageSetup`
  * @file_name: (type filename): the filename to read the page setup from
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Reads the page setup from the file @file_name.
  *
@@ -524,7 +524,7 @@ gtk_page_setup_load_file (GtkPageSetup *setup,
 /**
  * gtk_page_setup_new_from_file:
  * @file_name: (type filename): the filename to read the page setup from
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Reads the page setup from the file @file_name.
  *
@@ -574,9 +574,9 @@ string_to_enum (GType type,
  * gtk_page_setup_load_key_file:
  * @setup: a `GtkPageSetup`
  * @key_file: the `GKeyFile` to retrieve the page_setup from
- * @group_name: (nullable): the name of the group in the key_file to read, or %NULL
+ * @group_name: (nullable): the name of the group in the key_file to read
  *   to use the default name â€śPage Setup”
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Reads the page setup from the group @group_name in the key file
  * @key_file.
@@ -660,9 +660,9 @@ out:
 /**
  * gtk_page_setup_new_from_key_file:
  * @key_file: the `GKeyFile` to retrieve the page_setup from
- * @group_name: (nullable): the name of the group in the key_file to read, or %NULL
+ * @group_name: (nullable): the name of the group in the key_file to read
  *    to use the default name â€śPage Setup”
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Reads the page setup from the group @group_name in the key file
  * @key_file.
@@ -692,7 +692,7 @@ gtk_page_setup_new_from_key_file (GKeyFile     *key_file,
  * gtk_page_setup_to_file:
  * @setup: a `GtkPageSetup`
  * @file_name: (type filename): the file to save to
- * @error: (nullable): return location for errors, or %NULL
+ * @error: (nullable): return location for errors
  *
  * This function saves the information from @setup to @file_name.
  *
index 593be8d678f100b6dde99298b95b55f3edfa02d5..7bb9ed305f80d5606445b6ce93bcae476aededda 100644 (file)
@@ -767,8 +767,8 @@ paper_size_changed (GtkDropDown            *combo_box,
 
 /**
  * gtk_page_setup_unix_dialog_new:
- * @title: (nullable): the title of the dialog, or %NULL
- * @parent: (nullable): transient parent of the dialog, or %NULL
+ * @title: (nullable): the title of the dialog
+ * @parent: (nullable): transient parent of the dialog
  *
  * Creates a new page setup dialog.
  *
index 58c43c8cf2cee9291c6b5b7fbdfd54c421603edd..a71294417043edd4c3b61f55ee8a28bb493a5d52 100644 (file)
@@ -38,8 +38,8 @@ attr_list_merge_filter (PangoAttribute *attribute,
 
 /*
  * _gtk_pango_attr_list_merge:
- * @into: a #PangoAttrList where attributes are merged or %NULL
- * @from: a #PangoAttrList with the attributes to merge or %NULL
+ * @into: (nullable): a #PangoAttrList where attributes are merged
+ * @from: (nullable): a #PangoAttrList with the attributes to merge
  *
  * Merges attributes from @from into @into.
  *
index 8f94dc4075e69334597dfa19f9dab842b8eea285..91d2bb140472844326fcaaf7e62dd9ed9c752d86 100644 (file)
@@ -205,7 +205,7 @@ gtk_paper_size_new_from_info (const PaperInfo *info)
 
 /**
  * gtk_paper_size_new:
- * @name: (nullable): a paper size name, or %NULL
+ * @name: (nullable): a paper size name
  *
  * Creates a new `GtkPaperSize` object by parsing a
  * [PWG 5101.1-2002](ftp://ftp.pwg.org/pub/pwg/candidates/cs-pwgmsn10-20020226-5101.1.pdf)
@@ -910,13 +910,12 @@ gtk_paper_size_get_default_right_margin (GtkPaperSize *size,
  * @key_file: the `GKeyFile` to retrieve the papersize from
  * @group_name: (nullable): the name of the group in the key file to read,
  *   or %NULL to read the first group
- * @error: (nullable): return location for an error, or %NULL
+ * @error: (nullable): return location for an error
  *
  * Reads a paper size from the group @group_name in the key file
  * @key_file.
  *
- * Returns: a new `GtkPaperSize` object with the restored
- *   paper size, or %NULL if an error occurred
+ * Returns: a new `GtkPaperSize` object with the restored paper size
  */
 GtkPaperSize *
 gtk_paper_size_new_from_key_file (GKeyFile     *key_file,
index 6b9fb1c51efece69cc7257a2108ec114d79eaf6e..c6f82be0c0b0012a16faad8906ce734990bb9eec 100644 (file)
@@ -410,7 +410,7 @@ gtk_picture_new (void)
 
 /**
  * gtk_picture_new_for_paintable:
- * @paintable: (nullable): a `GdkPaintable`, or %NULL
+ * @paintable: (nullable): a `GdkPaintable`
  *
  * Creates a new `GtkPicture` displaying @paintable.
  *
@@ -431,7 +431,7 @@ gtk_picture_new_for_paintable (GdkPaintable *paintable)
 
 /**
  * gtk_picture_new_for_pixbuf:
- * @pixbuf: (nullable): a `GdkPixbuf`, or %NULL
+ * @pixbuf: (nullable): a `GdkPixbuf`
  *
  * Creates a new `GtkPicture` displaying @pixbuf.
  *
@@ -563,7 +563,7 @@ gtk_picture_new_for_resource (const char *resource_path)
 /**
  * gtk_picture_set_file: (attributes org.gtk.Method.set_property=file)
  * @self: a `GtkPicture`
- * @file: (nullable): a `GFile` or %NULL
+ * @file: (nullable): a `GFile`
  *
  * Makes @self load and display @file.
  *
@@ -684,7 +684,7 @@ gtk_picture_set_resource (GtkPicture *self,
 /**
  * gtk_picture_set_pixbuf:
  * @self: a `GtkPicture`
- * @pixbuf: (nullable): a `GdkPixbuf` or %NULL
+ * @pixbuf: (nullable): a `GdkPixbuf`
  *
  * Sets a `GtkPicture` to show a `GdkPixbuf`.
  *
@@ -729,7 +729,7 @@ gtk_picture_paintable_invalidate_size (GdkPaintable *paintable,
 /**
  * gtk_picture_set_paintable: (attributes org.gtk.Method.set_property=paintable)
  * @self: a `GtkPicture`
- * @paintable: (nullable): a `GdkPaintable` or %NULL
+ * @paintable: (nullable): a `GdkPaintable`
  *
  * Makes @self display the given @paintable.
  *
@@ -801,8 +801,7 @@ gtk_picture_set_paintable (GtkPicture   *self,
  *
  * Gets the `GdkPaintable` being displayed by the `GtkPicture`.
  *
- * Returns: (nullable) (transfer none): the displayed paintable, or %NULL if
- *   the picture is empty
+ * Returns: (nullable) (transfer none): the displayed paintable
  */
 GdkPaintable *
 gtk_picture_get_paintable (GtkPicture *self)
index 2610bf9cf3a8d14ece066a9a7a57fbdec2e69fb1..8018d861c748471c080c93b958abc44065b09dae 100644 (file)
@@ -691,7 +691,7 @@ gtk_popover_menu_add_submenu (GtkPopoverMenu *popover,
 
 /**
  * gtk_popover_menu_new_from_model:
- * @model: (nullable): a `GMenuModel`, or %NULL
+ * @model: (nullable): a `GMenuModel`
  *
  * Creates a `GtkPopoverMenu` and populates it according to @model.
  *
@@ -753,7 +753,7 @@ gtk_popover_menu_new_from_model_full (GMenuModel          *model,
 /**
  * gtk_popover_menu_set_menu_model: (attributes org.gtk.Method.set_property=menu-model)
  * @popover: a `GtkPopoverMenu`
- * @model: (nullable): a `GMenuModel`, or %NULL
+ * @model: (nullable): a `GMenuModel`
  *
  * Sets a new menu model on @popover.
  *
index 2881b687d5e693b497637e45f467408a9bc82e1d..193e77baa60112fc862dce3c5dbf66b00fbe2992 100644 (file)
@@ -683,7 +683,7 @@ gtk_popover_menu_bar_buildable_iface_init (GtkBuildableIface *iface)
 
 /**
  * gtk_popover_menu_bar_new_from_model:
- * @model: (nullable): a `GMenuModel`, or %NULL
+ * @model: (nullable): a `GMenuModel`
  *
  * Creates a `GtkPopoverMenuBar` from a `GMenuModel`.
  *
@@ -700,7 +700,7 @@ gtk_popover_menu_bar_new_from_model (GMenuModel *model)
 /**
  * gtk_popover_menu_bar_set_menu_model: (attributes org.gtk.Method.set_property=menu-model)
  * @bar: a `GtkPopoverMenuBar`
- * @model: (nullable): a `GMenuModel`, or %NULL
+ * @model: (nullable): a `GMenuModel`
  *
  * Sets a menu model from which @bar should take
  * its contents.
index 530ffe09b0aebab8b38c46c3e12a25f466ca94a0..f71156d9deb787fa9754bade0b297c11de4719e9 100644 (file)
@@ -493,7 +493,7 @@ gtk_print_job_set_source_fd (GtkPrintJob  *job,
 /**
  * gtk_print_job_get_surface:
  * @job: a `GtkPrintJob`
- * @error: (nullable): return location for errors, or %NULL
+ * @error: (nullable): return location for errors
  *
  * Gets a cairo surface onto which the pages of
  * the print job should be rendered.
index 7dd28946982ab717cc04c11965714c9aa52357c9..32411ed22b9e4efbdd031a859cf71bc09d87d4d8 100644 (file)
@@ -1012,8 +1012,8 @@ gtk_print_run_page_setup_dialog (GtkWindow        *parent,
 
 /**
  * gtk_print_run_page_setup_dialog_async:
- * @parent: (nullable): transient parent, or %NULL
- * @page_setup: (nullable): an existing #GtkPageSetup, or %NULL
+ * @parent: (nullable): transient parent
+ * @page_setup: (nullable): an existing #GtkPageSetup
  * @settings: a #GtkPrintSettings
  * @done_cb: (scope async): a function to call when the user saves
  *    the modified page setup
index f37b161fc82401127c4335ae86300e84f88314b9..817b65701f6f55e225229234e7eb53a044677b04 100644 (file)
@@ -978,8 +978,8 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
    * signal is emitted on the operation. Then you can read out any
    * information you need from the widgets.
    *
-   * Returns: (transfer none): A custom widget that gets embedded in
-   *   the print dialog, or %NULL
+   * Returns: (nullable) (transfer none): A custom widget that gets embedded in
+   *   the print dialog
    */
   signals[CREATE_CUSTOM_WIDGET] =
     g_signal_new (I_("create-custom-widget"),
@@ -1037,7 +1037,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
    * @operation: the `GtkPrintOperation` on which the signal was emitted
    * @preview: the `GtkPrintOperationPreview` for the current operation
    * @context: the `GtkPrintContext` that will be used
-   * @parent: (nullable): the `GtkWindow` to use as window parent, or %NULL
+   * @parent: (nullable): the `GtkWindow` to use as window parent
    *
    * Gets emitted when a preview is requested from the native dialog.
    *
@@ -1422,7 +1422,7 @@ gtk_print_operation_new (void)
 /**
  * gtk_print_operation_set_default_page_setup: (attributes org.gtk.Method.set_property=default-page-setup)
  * @op: a `GtkPrintOperation`
- * @default_page_setup: (nullable): a `GtkPageSetup`, or %NULL
+ * @default_page_setup: (nullable): a `GtkPageSetup`
  *
  * Makes @default_page_setup the default page setup for @op.
  *
@@ -3012,7 +3012,7 @@ gtk_print_operation_get_error (GtkPrintOperation  *op,
  * @op: a `GtkPrintOperation`
  * @action: the action to start
  * @parent: (nullable): Transient parent of the dialog
- * @error: (nullable): Return location for errors, or %NULL
+ * @error: (nullable): Return location for errors
  *
  * Runs the print operation.
  *
index 113e3be13f723897ab250d46b6aa0bd815125f40..dbc8a099e87a5ca098e0cc9a7bf859839e6f447b 100644 (file)
@@ -167,7 +167,7 @@ gtk_print_settings_get (GtkPrintSettings *settings,
  * gtk_print_settings_set:
  * @settings: a `GtkPrintSettings`
  * @key: a key
- * @value: (nullable): a string value, or %NULL
+ * @value: (nullable): a string value
  *
  * Associates @value with @key.
  */
@@ -1557,7 +1557,7 @@ gtk_print_settings_set_output_bin (GtkPrintSettings *settings,
  * gtk_print_settings_load_file:
  * @settings: a `GtkPrintSettings`
  * @file_name: (type filename): the filename to read the settings from
- * @error: (nullable): return location for errors, or %NULL
+ * @error: (nullable): return location for errors
  *
  * Reads the print settings from @file_name.
  *
@@ -1593,7 +1593,7 @@ gtk_print_settings_load_file (GtkPrintSettings *settings,
 /**
  * gtk_print_settings_new_from_file:
  * @file_name: (type filename): the filename to read the settings from
- * @error: (nullable): return location for errors, or %NULL
+ * @error: (nullable): return location for errors
  *
  * Reads the print settings from @file_name.
  *
@@ -1626,7 +1626,7 @@ gtk_print_settings_new_from_file (const char   *file_name,
  * @key_file: the `GKeyFile` to retrieve the settings from
  * @group_name: (nullable): the name of the group to use, or %NULL
  *   to use the default â€śPrint Settings”
- * @error: (nullable): return location for errors, or %NULL
+ * @error: (nullable): return location for errors
  *
  * Reads the print settings from the group @group_name in @key_file.
  *
@@ -1686,7 +1686,7 @@ gtk_print_settings_load_key_file (GtkPrintSettings *settings,
  * @key_file: the `GKeyFile` to retrieve the settings from
  * @group_name: (nullable): the name of the group to use, or %NULL to use
  *   the default â€śPrint Settings”
- * @error: (nullable): return location for errors, or %NULL
+ * @error: (nullable): return location for errors
  *
  * Reads the print settings from the group @group_name in @key_file.
  *
@@ -1717,7 +1717,7 @@ gtk_print_settings_new_from_key_file (GKeyFile     *key_file,
  * gtk_print_settings_to_file:
  * @settings: a `GtkPrintSettings`
  * @file_name: (type filename): the file to save to
- * @error: (nullable): return location for errors, or %NULL
+ * @error: (nullable): return location for errors
  *
  * This function saves the print settings from @settings to @file_name.
  *
index 8b5ea2d8f3a12b739460a7cc32831c3a0eec5b7e..c0f8825a3f3aa7bd678dffd72d50a3d614ae3d19 100644 (file)
@@ -3051,8 +3051,8 @@ paper_size_changed (GtkDropDown *combo_box,
 
 /**
  * gtk_print_unix_dialog_new:
- * @title: (nullable): Title of the dialog, or %NULL
- * @parent: (nullable): Transient parent of the dialog, or %NULL
+ * @title: (nullable): Title of the dialog
+ * @parent: (nullable): Transient parent of the dialog
  *
  * Creates a new `GtkPrintUnixDialog`.
  *
@@ -3222,7 +3222,7 @@ set_active_printer (GtkPrintUnixDialog *dialog,
 /**
  * gtk_print_unix_dialog_set_settings: (attributes org.gtk.Method.set_property=print-settings)
  * @dialog: a `GtkPrintUnixDialog`
- * @settings: (nullable): a `GtkPrintSettings`, or %NULL
+ * @settings: (nullable): a `GtkPrintSettings`
  *
  * Sets the `GtkPrintSettings` for the `GtkPrintUnixDialog`.
  *
index aaf0c06271682735c4ef19f37a4aba7812b3ec0e..2af936066ab5d3049e6f7449c7467b8c96da8ec7 100644 (file)
@@ -835,7 +835,7 @@ gtk_progress_bar_pulse (GtkProgressBar *pbar)
 /**
  * gtk_progress_bar_set_text: (attributes org.gtk.Method.set_property=text)
  * @pbar: a `GtkProgressBar`
- * @text: (nullable): a UTF-8 string, or %NULL
+ * @text: (nullable): a UTF-8 string
  *
  * Causes the given @text to appear next to the progress bar.
  *
@@ -1039,8 +1039,7 @@ gtk_progress_bar_set_inverted (GtkProgressBar *pbar,
  * The return value is a reference to the text, not a copy of it,
  * so will become invalid if you change the text in the progress bar.
  *
- * Returns: (nullable): text, or %NULL; this string is owned by the widget
- * and should not be modified or freed.
+ * Returns: (nullable): the text
  */
 const char *
 gtk_progress_bar_get_text (GtkProgressBar *pbar)
index 2c5315e60e32249c1f4bcfa827208aa7105656ac..00cb6c7af91f230759674f7616eec69abd95bf75 100644 (file)
@@ -995,7 +995,7 @@ gtk_recent_manager_add_full (GtkRecentManager    *manager,
  * gtk_recent_manager_remove_item:
  * @manager: a `GtkRecentManager`
  * @uri: the URI of the item you wish to remove
- * @error: (nullable): return location for a #GError, or %NULL
+ * @error: (nullable): return location for a #GError
  *
  * Removes a resource pointed by @uri from the recently used resources
  * list handled by a recent manager.
@@ -1144,7 +1144,7 @@ build_recent_info (GBookmarkFile *bookmarks,
  * gtk_recent_manager_lookup_item:
  * @manager: a `GtkRecentManager`
  * @uri: a URI
- * @error: (nullable): a return location for a #GError, or %NULL
+ * @error: (nullable): a return location for a #GError
  *
  * Searches for a URI inside the recently used resources list, and
  * returns a `GtkRecentInfo` containing information about the resource
index 576b939a7428dd9bf35bd64c5f1fc579a41ce5c9..d8b11020160967f55ae0102e42c0cff9d6ce642a 100644 (file)
@@ -151,8 +151,7 @@ gtk_root_set_focus (GtkRoot   *self,
  * `gtk_widget_has_focus (widget)` will be %FALSE for the
  * widget.
  *
- * Returns: (nullable) (transfer none): the currently focused
- *   widget, or %NULL if there is none.
+ * Returns: (nullable) (transfer none): the currently focused widget
  */
 GtkWidget *
 gtk_root_get_focus (GtkRoot *self)
index c05ccb97603b8080dd768a6a934c9f876e1c6d1f..a44c863a73a6c3f94e0a622473b72274bc82a309 100644 (file)
@@ -1596,8 +1596,8 @@ gtk_scale_get_layout (GtkScale *scale)
 /**
  * gtk_scale_get_layout_offsets:
  * @scale: a #GtkScale
- * @x: (out) (optional): location to store X offset of layout, or %NULL
- * @y: (out) (optional): location to store Y offset of layout, or %NULL
+ * @x: (out) (optional): location to store X offset of layout
+ * @y: (out) (optional): location to store Y offset of layout
  *
  * Obtains the coordinates where the scale will draw the
  * `PangoLayout` representing the text in the scale.
@@ -1678,8 +1678,7 @@ gtk_scale_clear_marks (GtkScale *scale)
  *   and %GTK_POS_LEFT are drawn above the scale, anything else below.
  *   For a vertical scale, #GTK_POS_LEFT and %GTK_POS_TOP are drawn to
  *   the left of the scale, anything else to the right.
- * @markup: (nullable): Text to be shown at the mark, using
- *   Pango markup, or %NULL
+ * @markup: (nullable): Text to be shown at the mark, using Pango markup
  *
  * Adds a mark at @value.
  *
index 52459b97619f2a27b8a168fc3aa5cb283009a07e..46cde1e965a8f8aac896a8b737061ae0aea4582b 100644 (file)
@@ -236,7 +236,7 @@ gtk_selection_filter_model_init (GtkSelectionFilterModel *self)
 
 /**
  * gtk_selection_filter_model_new:
- * @model: (nullable) (transfer none): the selection model to filter, or %NULL
+ * @model: (nullable) (transfer none): the selection model to filter
  *
  * Creates a new `GtkSelectionFilterModel` that will include the
  * selected items from the underlying selection model.
index 848860ae62c72a92fda486104e56bb8d3913358b..0d0064897c8c8b49ceb2d898553934d7b90c824e 100644 (file)
@@ -126,7 +126,6 @@ gtk_shortcut_trigger_trigger (GtkShortcutTrigger *self,
  * `<` and `&gt;` instead of `>`.
  *
  * Returns: (nullable) (transfer full): a new `GtkShortcutTrigger`
- *   or %NULL on error
  */
 GtkShortcutTrigger *
 gtk_shortcut_trigger_parse_string (const char *string)
index f8c8be3639c1fc80c0def1f644e94cd27f6483a1..8990ce3e624e5550de9e5e58679b9a726ebf41a2 100644 (file)
@@ -449,7 +449,7 @@ gtk_single_selection_init (GtkSingleSelection *self)
 
 /**
  * gtk_single_selection_new:
- * @model: (nullable) (transfer full): the `GListModel` to manage, or %NULL
+ * @model: (nullable) (transfer full): the `GListModel` to manage
  *
  * Creates a new selection to handle @model.
  *
index bcac4d662682f60a1767aef85fdfcca027ab0172..8f038596e194fb37436daad721ea117d79c1ceaa 100644 (file)
@@ -453,12 +453,12 @@ gtk_widget_query_size_for_orientation (GtkWidget        *widget,
  *   the height the widget should be measured with. The %GTK_ORIENTATION_VERTICAL
  *   case is analogous. This way, both height-for-width and width-for-height
  *   requests can be implemented. If no size is known, -1 can be passed.
- * @minimum: (out) (optional): location to store the minimum size, or %NULL
- * @natural: (out) (optional): location to store the natural size, or %NULL
+ * @minimum: (out) (optional): location to store the minimum size
+ * @natural: (out) (optional): location to store the natural size
  * @minimum_baseline: (out) (optional): location to store the baseline
- *   position for the minimum size, or %NULL
+ *   position for the minimum size
  * @natural_baseline: (out) (optional): location to store the baseline
- *   position for the natural size, or %NULL
+ *   position for the natural size
  *
  * Measures @widget in the orientation @orientation and for the given @for_size.
  *
@@ -577,8 +577,8 @@ gtk_widget_get_request_mode (GtkWidget *widget)
 /**
  * gtk_widget_get_preferred_size:
  * @widget: a `GtkWidget` instance
- * @minimum_size: (out) (optional): location for storing the minimum size, or %NULL
- * @natural_size: (out) (optional): location for storing the natural size, or %NULL
+ * @minimum_size: (out) (optional): location for storing the minimum size
+ * @natural_size: (out) (optional): location for storing the natural size
  *
  * Retrieves the minimum and natural size of a widget, taking
  * into account the widget’s preference for height-for-width management.
index 9c3d798af1be502f098648cf0c09238a63f14f3a..2642d514a5b5dc4b49a8247ccd66195ba70b7bc6 100644 (file)
@@ -297,7 +297,7 @@ gtk_slice_list_model_init (GtkSliceListModel *self)
 
 /**
  * gtk_slice_list_model_new:
- * @model: (transfer full) (nullable): The model to use, or %NULL
+ * @model: (transfer full) (nullable): The model to use
  * @offset: the offset of the slice
  * @size: maximum size of the slice
  *
index 8f8091cb1b91931332ab258a6b9937d02c63a9bb..43fc43e1734c549f7ef6657865286bfbccd1d227 100644 (file)
@@ -829,8 +829,8 @@ gtk_sort_list_model_init (GtkSortListModel *self)
 
 /**
  * gtk_sort_list_model_new:
- * @model: (nullable) (transfer full): the model to sort, or %NULL
- * @sorter: (nullable) (transfer full): the `GtkSorter` to sort @model with, or %NULL
+ * @model: (nullable) (transfer full): the model to sort
+ * @sorter: (nullable) (transfer full): the `GtkSorter` to sort @model with,
  *
  * Creates a new sort list model that uses the @sorter to sort @model.
  *
index d90a178c52bc3c5b451a760ee4ff0b7cc7bbb7dd..9a41486cde939602ae6aff5da11e8746d091e9cd 100644 (file)
@@ -1773,8 +1773,7 @@ gtk_spin_button_configure (GtkSpinButton *spin_button,
 
 /**
  * gtk_spin_button_new:
- * @adjustment: (nullable): the `GtkAdjustment` that this spin
- *   button should use, or %NULL
+ * @adjustment: (nullable): the `GtkAdjustment` that this spin button should use
  * @climb_rate: specifies by how much the rate of change in the value will
  *   accelerate if you continue to hold down an up/down button or arrow key
  * @digits: the number of decimal places to display
@@ -1964,8 +1963,8 @@ gtk_spin_button_set_increments (GtkSpinButton *spin_button,
 /**
  * gtk_spin_button_get_increments:
  * @spin_button: a `GtkSpinButton`
- * @step: (out) (optional): location to store step increment, or %NULL
- * @page: (out) (optional): location to store page increment, or %NULL
+ * @step: (out) (optional): location to store step increment
+ * @page: (out) (optional): location to store page increment
  *
  * Gets the current step and page the increments
  * used by @spin_button.
@@ -2019,8 +2018,8 @@ gtk_spin_button_set_range (GtkSpinButton *spin_button,
 /**
  * gtk_spin_button_get_range:
  * @spin_button: a `GtkSpinButton`
- * @min: (out) (optional): location to store minimum allowed value, or %NULL
- * @max: (out) (optional): location to store maximum allowed value, or %NULL
+ * @min: (out) (optional): location to store minimum allowed value
+ * @max: (out) (optional): location to store maximum allowed value
  *
  * Gets the range allowed for @spin_button.
  *
index 896a0b63de5cf2267b973914ce2b840556d28cea..4d77e89ef4399a21ef027f0c324a5e06371ac3cf 100644 (file)
@@ -1476,7 +1476,7 @@ gtk_stack_add_child (GtkStack   *stack,
  * gtk_stack_add_named:
  * @stack: a `GtkStack`
  * @child: the widget to add
- * @name: (nullable): the name for @child or %NULL
+ * @name: (nullable): the name for @child
  *
  * Adds a child to @stack.
  *
index a56d81a44a3abe5519f38f3224841fcd4c189276..c738babf65c8e99c1bfa4b224c6dee8f64bf2594 100644 (file)
@@ -425,8 +425,7 @@ gtk_stack_switcher_set_stack (GtkStackSwitcher *switcher,
  *
  * Retrieves the stack.
  *
- * Returns: (nullable) (transfer none): the stack, or %NULL if
- *    none has been set explicitly.
+ * Returns: (nullable) (transfer none): the stack
  */
 GtkStack *
 gtk_stack_switcher_get_stack (GtkStackSwitcher *switcher)
index fa4712099aea347eee7558882ad4d455773e2b98..a6fcefab77d8faa53bcee689bad763c03bf51a53 100644 (file)
@@ -354,7 +354,7 @@ gtk_string_sorter_new (GtkExpression *expression)
  *
  * Gets the expression that is evaluated to obtain strings from items.
  *
- * Returns: (transfer none) (nullable): a `GtkExpression`, or %NULL
+ * Returns: (transfer none) (nullable): a `GtkExpression`
  */
 GtkExpression *
 gtk_string_sorter_get_expression (GtkStringSorter *self)
@@ -367,7 +367,7 @@ gtk_string_sorter_get_expression (GtkStringSorter *self)
 /**
  * gtk_string_sorter_set_expression: (attributes org.gtk.Method.set_property=expression)
  * @self: a `GtkStringSorter`
- * @expression: (nullable) (transfer none): a `GtkExpression`, or %NULL
+ * @expression: (nullable) (transfer none): a `GtkExpression`
  *
  * Sets the expression that is evaluated to obtain strings from items.
  *
index 153c4f1b0930112c8f1d63b2fad4c193e4d7347d..f753070402302aa48f6ad47d13a528795c7053b9 100644 (file)
@@ -166,8 +166,7 @@ _gtk_style_property_init_properties (void)
  * Looks up the CSS property with the given @name. If no such
  * property exists, %NULL is returned.
  *
- * Returns: (nullable) (transfer none): The property or %NULL if no
- *   property with the given name exists.
+ * Returns: (nullable) (transfer none): The property
  */
 GtkStyleProperty *
 _gtk_style_property_lookup (const char *name)
index 3537b6e0dc27a64c9378e973154711c7a976518d..8db3495a4440f643454b3f80c1ee12632a01251b 100644 (file)
@@ -6615,7 +6615,7 @@ gtk_text_reset_blink_time (GtkText *self)
  * gtk_text_set_placeholder_text: (attributes org.gtk.Method.set_property=placeholder-text)
  * @self: a `GtkText`
  * @text: (nullable): a string to be displayed when @self
- *   is empty and unfocused, or %NULL
+ *   is empty and unfocused
  *
  * Sets text to be displayed in @self when it is empty.
  *
@@ -6776,7 +6776,7 @@ gtk_text_get_input_hints (GtkText *self)
 /**
  * gtk_text_set_attributes: (attributes org.gtk.Method.set_property=attributes)
  * @self: a `GtkText`
- * @attrs: (nullable): a `PangoAttrList` or %NULL to unset
+ * @attrs: (nullable): a `PangoAttrList`
  *
  * Sets attributes that are applied to the text.
  */
@@ -6811,8 +6811,7 @@ gtk_text_set_attributes (GtkText       *self,
  * Gets the attribute list that was set on the `GtkText`
  * using gtk_text_set_attributes().
  *
- * Returns: (transfer none) (nullable): the attribute list,
- *   or %NULL if none was set.
+ * Returns: (transfer none) (nullable): the attribute list
  */
 PangoAttrList *
 gtk_text_get_attributes (GtkText *self)
@@ -6860,8 +6859,7 @@ gtk_text_set_tabs (GtkText       *self,
  * Gets the tabstops that were set on the `GtkText`
  * using gtk_text_set_tabs().
  *
- * Returns: (nullable) (transfer none): the tabstops,
- *   or %NULL if none was set.
+ * Returns: (nullable) (transfer none): the tabstops
  */
 PangoTabArray *
 gtk_text_get_tabs (GtkText *self)
index d6394df9237ce4cc486168a3d89ad5b6cc2322cc..80127c3fdea573006c80b3825a999d32668a7787 100644 (file)
@@ -2445,7 +2445,7 @@ gtk_text_buffer_set_mark (GtkTextBuffer     *buffer,
 /**
  * gtk_text_buffer_create_mark:
  * @buffer: a `GtkTextBuffer`
- * @mark_name: (nullable): name for mark, or %NULL
+ * @mark_name: (nullable): name for mark
  * @where: location to place mark
  * @left_gravity: whether the mark has left gravity
  *
@@ -2615,7 +2615,7 @@ gtk_text_buffer_delete_mark (GtkTextBuffer *buffer,
  * Returns the mark named @name in buffer @buffer, or %NULL if no such
  * mark exists in the buffer.
  *
- * Returns: (nullable) (transfer none): a #GtkTextMark, or %NULL
+ * Returns: (nullable) (transfer none): a #GtkTextMark
  **/
 GtkTextMark*
 gtk_text_buffer_get_mark (GtkTextBuffer *buffer,
@@ -2826,8 +2826,8 @@ gtk_text_buffer_select_range (GtkTextBuffer     *buffer,
 /**
  * gtk_text_buffer_create_tag:
  * @buffer: a `GtkTextBuffer`
- * @tag_name: (nullable): name of the new tag, or %NULL
- * @first_property_name: (nullable): name of first property to set, or %NULL
+ * @tag_name: (nullable): name of the new tag
+ * @first_property_name: (nullable): name of first property to set
  * @...: %NULL-terminated list of property names and values
  *
  * Creates a tag and adds it to the tag table for @buffer.
@@ -3919,7 +3919,7 @@ remove_all_selection_clipboards (GtkTextBuffer *buffer)
  * gtk_text_buffer_paste_clipboard:
  * @buffer: a `GtkTextBuffer`
  * @clipboard: the `GdkClipboard` to paste from
- * @override_location: (nullable): location to insert pasted text, or %NULL
+ * @override_location: (nullable): location to insert pasted text
  * @default_editable: whether the buffer is editable by default
  *
  * Pastes the contents of a clipboard.
index 823cc915a560682e6550980f14980df4417b1d8d..e19befe88d1a0c630ad68c8572e4e20889e8bf80 100644 (file)
@@ -1185,7 +1185,7 @@ gtk_text_iter_get_toggled_tags  (const GtkTextIter  *iter,
 /**
  * gtk_text_iter_starts_tag:
  * @iter: an iterator
- * @tag: (nullable): a `GtkTextTag`, or %NULL
+ * @tag: (nullable): a `GtkTextTag`
  *
  * Returns %TRUE if @tag is toggled on at exactly this point.
  *
@@ -1235,7 +1235,7 @@ gtk_text_iter_starts_tag (const GtkTextIter *iter,
 /**
  * gtk_text_iter_ends_tag:
  * @iter: an iterator
- * @tag: (nullable): a `GtkTextTag`, or %NULL
+ * @tag: (nullable): a `GtkTextTag`
  *
  * Returns %TRUE if @tag is toggled off at exactly this point.
  *
@@ -1285,7 +1285,7 @@ gtk_text_iter_ends_tag   (const GtkTextIter  *iter,
 /**
  * gtk_text_iter_toggles_tag:
  * @iter: an iterator
- * @tag: (nullable): a `GtkTextTag`, or %NULL
+ * @tag: (nullable): a `GtkTextTag`
  *
  * Gets whether a range with @tag applied to it begins
  * or ends at @iter.
@@ -4232,7 +4232,7 @@ gtk_text_iter_forward_to_line_end (GtkTextIter *iter)
 /**
  * gtk_text_iter_forward_to_tag_toggle:
  * @iter: a `GtkTextIter`
- * @tag: (nullable): a `GtkTextTag`, or %NULL
+ * @tag: (nullable): a `GtkTextTag`
  *
  * Moves forward to the next toggle (on or off) of the
  * @tag, or to the next toggle of any tag if
@@ -4319,7 +4319,7 @@ gtk_text_iter_forward_to_tag_toggle (GtkTextIter *iter,
 /**
  * gtk_text_iter_backward_to_tag_toggle:
  * @iter: a `GtkTextIter`
- * @tag: (nullable): a `GtkTextTag`, or %NULL
+ * @tag: (nullable): a `GtkTextTag`
  *
  * Moves backward to the next toggle (on or off) of the
  * @tag, or to the next toggle of any tag if
@@ -4436,7 +4436,7 @@ matches_pred (GtkTextIter *iter,
  * @iter: a `GtkTextIter`
  * @pred: (scope call): a function to be called on each character
  * @user_data: (closure): user data for @pred
- * @limit: (nullable): search limit, or %NULL for none
+ * @limit: (nullable): search limit
  *
  * Advances @iter, calling @pred on each character.
  *
@@ -4475,7 +4475,7 @@ gtk_text_iter_forward_find_char (GtkTextIter         *iter,
  * @iter: a `GtkTextIter`
  * @pred: (scope call): function to be called on each character
  * @user_data: (closure): user data for @pred
- * @limit: (nullable): search limit, or %NULL for none
+ * @limit: (nullable): search limit
  *
  * Same as gtk_text_iter_forward_find_char(),
  * but goes backward from @iter.
@@ -4955,8 +4955,8 @@ strbreakup (const char *string,
  * @iter: start of search
  * @str: a search string
  * @flags: flags affecting how the search is done
- * @match_start: (out caller-allocates) (optional): return location for start of match, or %NULL
- * @match_end: (out caller-allocates) (optional): return location for end of match, or %NULL
+ * @match_start: (out caller-allocates) (optional): return location for start of match
+ * @match_end: (out caller-allocates) (optional): return location for end of match
  * @limit: (nullable): location of last possible @match_end, or %NULL for the end of the buffer
  *
  * Searches forward for @str.
@@ -5285,8 +5285,8 @@ lines_window_free (LinesWindow *win)
  * @iter: a `GtkTextIter` where the search begins
  * @str: search string
  * @flags: bitmask of flags affecting the search
- * @match_start: (out caller-allocates) (optional): return location for start of match, or %NULL
- * @match_end: (out caller-allocates) (optional): return location for end of match, or %NULL
+ * @match_start: (out caller-allocates) (optional): return location for start of match
+ * @match_end: (out caller-allocates) (optional): return location for end of match
  * @limit: (nullable): location of last possible @match_start, or %NULL for start of buffer
  *
  * Same as gtk_text_iter_forward_search(), but moves backward.
index cd600a9bede310bbfb1837aa6f87c9cc207e5a77..ec8307a74292a83ae48a70e7ca4798b39da6e8c8 100644 (file)
@@ -2826,8 +2826,8 @@ gtk_text_layout_get_iter_at_position (GtkTextLayout *layout,
  * gtk_text_layout_get_cursor_locations:
  * @layout: a #GtkTextLayout
  * @iter: a #GtkTextIter
- * @strong_pos: (out) (optional): location to store the strong cursor position, or %NULL
- * @weak_pos: (out) (optional): location to store the weak cursor position, or %NULL
+ * @strong_pos: (out) (optional): location to store the strong cursor position
+ * @weak_pos: (out) (optional): location to store the weak cursor position
  *
  * Given an iterator within a text layout, determine the positions of the
  * strong and weak cursors if the insertion point is at that
index 39a264b955f6893c94d39c334c41b2782d7a0b84..878c6ed57f11f51778238abfcdcf372d0b2c5b57 100644 (file)
@@ -245,7 +245,7 @@ gtk_text_mark_get_property (GObject    *object,
 
 /**
  * gtk_text_mark_new:
- * @name: (nullable): mark name or %NULL
+ * @name: (nullable): mark name
  * @left_gravity: whether the mark should have left gravity
  *
  * Creates a text mark.
index ac92f49eec239ab7f8ce81418ae0e99b2f2c6d5b..fdf17a6efc3b7d14d5b0911378b0113daecb5d1b 100644 (file)
@@ -1024,7 +1024,7 @@ gtk_text_tag_init (GtkTextTag *text_tag)
 
 /**
  * gtk_text_tag_new:
- * @name: (nullable): tag name, or %NULL
+ * @name: (nullable): tag name
  *
  * Creates a `GtkTextTag`.
  *
index fef2a8844937083ddc0c5310015fd0f64a64340e..eb545daec75940c81442502a0b7149d8dc74c900 100644 (file)
@@ -343,8 +343,7 @@ gtk_text_tag_table_add (GtkTextTagTable *table,
  *
  * Look up a named tag.
  *
- * Returns: (nullable) (transfer none): The tag,
- *   or %NULL if none by that name is in the table.
+ * Returns: (nullable) (transfer none): The tag
  */
 GtkTextTag*
 gtk_text_tag_table_lookup (GtkTextTagTable *table,
index f86fbcff26c4b7dc95f2cf38f17cb7c79d7e773e..d15c020d14f528efaae91cb91f46ec0ae343d9e0 100644 (file)
@@ -4458,7 +4458,7 @@ find_child_for_window_type (GtkTextView       *text_view,
  * @win must be one of %GTK_TEXT_WINDOW_LEFT, %GTK_TEXT_WINDOW_RIGHT,
  * %GTK_TEXT_WINDOW_TOP, or %GTK_TEXT_WINDOW_BOTTOM.
  *
- * Returns: (transfer none) (nullable): a `GtkWidget` or %NULL
+ * Returns: (transfer none) (nullable): a `GtkWidget`
  */
 GtkWidget *
 gtk_text_view_get_gutter (GtkTextView       *text_view,
@@ -4484,7 +4484,7 @@ gtk_text_view_get_gutter (GtkTextView       *text_view,
  * gtk_text_view_set_gutter:
  * @text_view: a `GtkTextView`
  * @win: a `GtkTextWindowType`
- * @widget: (nullable): a `GtkWidget` or %NULL
+ * @widget: (nullable): a `GtkWidget`
  *
  * Places @widget into the gutter specified by @win.
  *
@@ -9211,8 +9211,8 @@ text_window_get_height (GtkTextWindow *win)
  * @win: a #GtkTextWindowType
  * @buffer_x: buffer x coordinate
  * @buffer_y: buffer y coordinate
- * @window_x: (out) (optional): window x coordinate return location or %NULL
- * @window_y: (out) (optional): window y coordinate return location or %NULL
+ * @window_x: (out) (optional): window x coordinate return location
+ * @window_y: (out) (optional): window y coordinate return location
  *
  * Converts buffer coordinates to window coordinates.
  */
@@ -9274,8 +9274,8 @@ gtk_text_view_buffer_to_window_coords (GtkTextView      *text_view,
  * @win: a #GtkTextWindowType
  * @window_x: window x coordinate
  * @window_y: window y coordinate
- * @buffer_x: (out) (optional): buffer x coordinate return location or %NULL
- * @buffer_y: (out) (optional): buffer y coordinate return location or %NULL
+ * @buffer_x: (out) (optional): buffer x coordinate return location
+ * @buffer_y: (out) (optional): buffer y coordinate return location
  *
  * Converts coordinates on the window identified by @win to buffer
  * coordinates.
index 1a364f1df6b864a75137dbb21d9584b483a0845f..62fd6b6c1358ea824b5d19a73845d32cce419c54 100644 (file)
@@ -222,7 +222,7 @@ gtk_tooltip_set_markup (GtkTooltip  *tooltip,
 /**
  * gtk_tooltip_set_text:
  * @tooltip: a `GtkTooltip`
- * @text: (nullable): a text string or %NULL
+ * @text: (nullable): a text string
  *
  * Sets the text of the tooltip to be @text.
  *
@@ -241,7 +241,7 @@ gtk_tooltip_set_text (GtkTooltip  *tooltip,
 /**
  * gtk_tooltip_set_icon:
  * @tooltip: a #GtkTooltip
- * @paintable: (nullable): a #GdkPaintable, or %NULL
+ * @paintable: (nullable): a #GdkPaintable
  *
  * Sets the icon of the tooltip (which is in front of the text) to be
  * @paintable.  If @paintable is %NULL, the image will be hidden.
@@ -259,7 +259,7 @@ gtk_tooltip_set_icon (GtkTooltip   *tooltip,
 /**
  * gtk_tooltip_set_icon_from_icon_name:
  * @tooltip: a #GtkTooltip
- * @icon_name: (nullable): an icon name, or %NULL
+ * @icon_name: (nullable): an icon name
  *
  * Sets the icon of the tooltip (which is in front of the text) to be
  * the icon indicated by @icon_name with the size indicated
@@ -278,7 +278,7 @@ gtk_tooltip_set_icon_from_icon_name (GtkTooltip  *tooltip,
 /**
  * gtk_tooltip_set_icon_from_gicon:
  * @tooltip: a #GtkTooltip
- * @gicon: (nullable): a #GIcon representing the icon, or %NULL
+ * @gicon: (nullable): a #GIcon representing the icon
  *
  * Sets the icon of the tooltip (which is in front of the text)
  * to be the icon indicated by @gicon with the size indicated
index d42ae10f3621fae76535ce518fbfd388885c7a7f..4d1b8fc58e2c2abec225408e7cf93defa2cc61d3 100644 (file)
@@ -175,7 +175,7 @@ gtk_tree_drag_source_drag_data_delete (GtkTreeDragSource *drag_source,
  * longer found in the model!
  * 
  * Returns: (nullable) (transfer full): a #GdkContentProvider for the
- *    given @path or %NULL if none exists
+ *    given @path
  **/
 GdkContentProvider *
 gtk_tree_drag_source_drag_data_get (GtkTreeDragSource *drag_source,
index 4ebc072236cb5d52f5e94818e8532c58ad958a0c..39504afab8faa525d01443c5c28926cfde26dad4 100644 (file)
@@ -704,7 +704,7 @@ gtk_tree_expander_get_child (GtkTreeExpander *self)
 /**
  * gtk_tree_expander_set_child: (attributes org.gtk.Method.set_property=child)
  * @self: a `GtkTreeExpander`
- * @child: (nullable): a `GtkWidget`, or %NULL
+ * @child: (nullable): a `GtkWidget`
  *
  * Sets the content widget to display.
  */
@@ -781,7 +781,7 @@ gtk_tree_expander_get_list_row (GtkTreeExpander *self)
 /**
  * gtk_tree_expander_set_list_row: (attributes org.gtk.Method.set_property=list-row)
  * @self: a `GtkTreeExpander` widget
- * @list_row: (nullable): a `GtkTreeListRow`, or %NULL
+ * @list_row: (nullable): a `GtkTreeListRow`
  *
  * Sets the tree list row that this expander should manage.
  */
index 659a35bf211f451634fdad567ee0ed1a461ddf9e..ee0a7d1e4747a0542fb9b626d264edd0f48c02ac 100644 (file)
@@ -559,7 +559,7 @@ gtk_tree_list_row_sorter_init (GtkTreeListRowSorter *self)
 
 /**
  * gtk_tree_list_row_sorter_new:
- * @sorter: (nullable) (transfer full): a `GtkSorter`, or %NULL
+ * @sorter: (nullable) (transfer full): a `GtkSorter`
  *
  * Create a special-purpose sorter that applies the sorting
  * of @sorter to the levels of a `GtkTreeListModel`.
@@ -588,7 +588,7 @@ gtk_tree_list_row_sorter_new (GtkSorter *sorter)
 /**
  * gtk_tree_list_row_sorter_set_sorter:
  * @self: a `GtkTreeListRowSorter`
- * @sorter: (nullable) (transfer none): The sorter to use, or %NULL
+ * @sorter: (nullable) (transfer none): The sorter to use
  *
  * Sets the sorter to use for items with the same parent.
  *
index d201fef3d632a1abcb9b4d15b51da433faa3750d..77741dc7b2c8bb3c90632fb5fab875dca292c5fa 100644 (file)
@@ -625,7 +625,7 @@ gtk_tree_path_new (void)
  * child of that 11th child, and the 1st child of that 5th child.
  * If an invalid path string is passed in, %NULL is returned.
  *
- * Returns: (nullable): A newly-created #GtkTreePath-struct, or %NULL
+ * Returns: (nullable): A newly-created #GtkTreePath
  */
 GtkTreePath *
 gtk_tree_path_new_from_string (const char *path)
@@ -868,7 +868,7 @@ gtk_tree_path_get_depth (GtkTreePath *path)
  *
  * The length of the array can be obtained with gtk_tree_path_get_depth().
  *
- * Returns: (nullable): The current indices, or %NULL
+ * Returns: (nullable) (transfer none): The current indices
  */
 int *
 gtk_tree_path_get_indices (GtkTreePath *path)
@@ -882,7 +882,7 @@ gtk_tree_path_get_indices (GtkTreePath *path)
  * gtk_tree_path_get_indices_with_depth: (rename-to gtk_tree_path_get_indices)
  * @path: a `GtkTreePath`
  * @depth: (out) (optional): return location for number of elements
- *   returned in the integer array, or %NULL
+ *   returned in the integer array
  *
  * Returns the current indices of @path.
  *
@@ -890,8 +890,8 @@ gtk_tree_path_get_indices (GtkTreePath *path)
  * It also returns the number of elements in the array.
  * The array should not be freed.
  *
- * Returns: (array length=depth) (transfer none): The current
- *   indices, or %NULL
+ * Returns: (array length=depth) (transfer none) (nullable): The current
+ *   indices
  */
 int *
 gtk_tree_path_get_indices_with_depth (GtkTreePath *path,
@@ -1508,7 +1508,7 @@ gtk_tree_model_iter_previous (GtkTreeModel *tree_model,
  * gtk_tree_model_iter_children:
  * @tree_model: a #GtkTreeModel
  * @iter: (out): the new #GtkTreeIter-struct to be set to the child
- * @parent: (nullable): the #GtkTreeIter-struct, or %NULL
+ * @parent: (nullable): the #GtkTreeIter
  *
  * Sets @iter to point to the first child of @parent.
  *
@@ -1566,7 +1566,7 @@ gtk_tree_model_iter_has_child (GtkTreeModel *tree_model,
 /**
  * gtk_tree_model_iter_n_children:
  * @tree_model: a #GtkTreeModel
- * @iter: (nullable): the #GtkTreeIter-struct, or %NULL
+ * @iter: (nullable): the #GtkTreeIter
  *
  * Returns the number of children that @iter has.
  *
@@ -1592,8 +1592,8 @@ gtk_tree_model_iter_n_children (GtkTreeModel *tree_model,
 /**
  * gtk_tree_model_iter_nth_child:
  * @tree_model: a #GtkTreeModel
- * @iter: (out): the #GtkTreeIter-struct to set to the nth child
- * @parent: (nullable): the #GtkTreeIter-struct to get the child from, or %NULL.
+ * @iter: (out): the #GtkTreeIter to set to the nth child
+ * @parent: (nullable): the #GtkTreeIter to get the child from
  * @n: the index of the desired child
  *
  * Sets @iter to be the child of @parent, using the given index.
@@ -2287,7 +2287,7 @@ gtk_tree_row_reference_unref_path (GtkTreePath  *path,
  * propagated, and the path is updated appropriately. If
  * @path isn’t a valid path in @model, then %NULL is returned.
  *
- * Returns: (nullable): a newly allocated #GtkTreeRowReference, or %NULL
+ * Returns: (nullable): a newly allocated #GtkTreeRowReference
  */
 GtkTreeRowReference *
 gtk_tree_row_reference_new (GtkTreeModel *model,
@@ -2334,7 +2334,7 @@ gtk_tree_row_reference_new (GtkTreeModel *model,
  * need to carefully monitor exactly when a row reference updates
  * itself, and is not generally needed by most applications.
  *
- * Returns: (nullable): a newly allocated #GtkTreeRowReference, or %NULL
+ * Returns: (nullable): a newly allocated #GtkTreeRowReference
  */
 GtkTreeRowReference *
 gtk_tree_row_reference_new_proxy (GObject      *proxy,
@@ -2400,7 +2400,7 @@ gtk_tree_row_reference_new_proxy (GObject      *proxy,
  * Returns a path that the row reference currently points to,
  * or %NULL if the path pointed to is no longer valid.
  *
- * Returns: (nullable) (transfer full): a current path, or %NULL
+ * Returns: (nullable) (transfer full): a current path
  */
 GtkTreePath *
 gtk_tree_row_reference_get_path (GtkTreeRowReference *reference)
@@ -2434,7 +2434,7 @@ gtk_tree_row_reference_get_model (GtkTreeRowReference *reference)
 
 /**
  * gtk_tree_row_reference_valid:
- * @reference: (nullable): a #GtkTreeRowReference, or %NULL
+ * @reference: (nullable): a #GtkTreeRowReference
  *
  * Returns %TRUE if the @reference is non-%NULL and refers to
  * a current valid path.
@@ -2469,7 +2469,7 @@ gtk_tree_row_reference_copy (GtkTreeRowReference *reference)
 
 /**
  * gtk_tree_row_reference_free:
- * @reference: (nullable): a #GtkTreeRowReference, or %NULL
+ * @reference: (nullable): a #GtkTreeRowReference
  *
  * Free’s @reference. @reference may be %NULL
  */
index a4a00a4c54e2bf83e7785d647177da20c8e4d509..8bf686488deb3392b9430c7b29659531bcbceb7a 100644 (file)
@@ -3754,7 +3754,7 @@ gtk_tree_model_filter_set_root (GtkTreeModelFilter *filter,
 /**
  * gtk_tree_model_filter_new:
  * @child_model: A #GtkTreeModel.
- * @root: (nullable): A #GtkTreePath or %NULL.
+ * @root: (nullable): A #GtkTreePath
  *
  * Creates a new #GtkTreeModel, with @child_model as the child_model
  * and @root as the virtual root.
@@ -3793,8 +3793,8 @@ gtk_tree_model_filter_get_model (GtkTreeModelFilter *filter)
  * gtk_tree_model_filter_set_visible_func:
  * @filter: A #GtkTreeModelFilter
  * @func: A #GtkTreeModelFilterVisibleFunc, the visible function
- * @data: (nullable): User data to pass to the visible function, or %NULL
- * @destroy: (nullable): Destroy notifier of @data, or %NULL
+ * @data: (nullable): User data to pass to the visible function
+ * @destroy: (nullable): Destroy notifier of @data
  *
  * Sets the visible function used when filtering the @filter to be @func.
  * The function should return %TRUE if the given row should be visible and
@@ -3855,8 +3855,8 @@ gtk_tree_model_filter_set_visible_func (GtkTreeModelFilter            *filter,
  * @n_columns: The number of columns in the filter model.
  * @types: (array length=n_columns): The #GTypes of the columns.
  * @func: A #GtkTreeModelFilterModifyFunc
- * @data: (nullable): User data to pass to the modify function, or %NULL.
- * @destroy: (nullable): Destroy notifier of @data, or %NULL.
+ * @data: (nullable): User data to pass to the modify function
+ * @destroy: (nullable): Destroy notifier of @data
  *
  * With the @n_columns and @types parameters, you give an array of column
  * types for this model (which will be exposed to the parent model/view).
@@ -4108,7 +4108,7 @@ gtk_real_tree_model_filter_convert_child_path_to_path (GtkTreeModelFilter *filte
  * child model or points to a row which is not visible in @filter, then %NULL
  * is returned.
  *
- * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath, or %NULL.
+ * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath
  */
 GtkTreePath *
 gtk_tree_model_filter_convert_child_path_to_path (GtkTreeModelFilter *filter,
@@ -4149,7 +4149,7 @@ gtk_tree_model_filter_convert_child_path_to_path (GtkTreeModelFilter *filter,
  * point to the same location in the model not being filtered. If @filter_path
  * does not point to a location in the child model, %NULL is returned.
  *
- * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath, or %NULL.
+ * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath
  */
 GtkTreePath *
 gtk_tree_model_filter_convert_path_to_child_path (GtkTreeModelFilter *filter,
index b4a25df9249b364175aa1662032264fe7a830d39..104bf304c73eb1840a3a9e69225ee46e872f16ee 100644 (file)
@@ -2111,7 +2111,7 @@ gtk_tree_model_sort_elt_get_path (SortLevel *level,
 /**
  * gtk_tree_model_sort_set_model:
  * @tree_model_sort: The #GtkTreeModelSort.
- * @child_model: (nullable): A #GtkTreeModel, or %NULL.
+ * @child_model: (nullable): A #GtkTreeModel
  *
  * Sets the model of @tree_model_sort to be @model.  If @model is %NULL, 
  * then the old model is unset.  The sort function is unset as a result 
@@ -2280,7 +2280,7 @@ gtk_real_tree_model_sort_convert_child_path_to_path (GtkTreeModelSort *tree_mode
  * point to the same row in the sorted model.  If @child_path isn’t a valid 
  * path on the child model, then %NULL is returned.
  * 
- * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath, or %NULL
+ * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath
  **/
 GtkTreePath *
 gtk_tree_model_sort_convert_child_path_to_path (GtkTreeModelSort *tree_model_sort,
@@ -2353,7 +2353,7 @@ gtk_tree_model_sort_convert_child_iter_to_iter (GtkTreeModelSort *tree_model_sor
  * sorted.  If @sorted_path does not point to a location in the child model, 
  * %NULL is returned.
  * 
- * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath, or %NULL
+ * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath
  **/
 GtkTreePath *
 gtk_tree_model_sort_convert_path_to_child_path (GtkTreeModelSort *tree_model_sort,
index 9d64374f1801da3bbfefb73699896c721fa09522..368d3e77eca4f746227a0345134b9efde3a23fb3 100644 (file)
@@ -521,7 +521,7 @@ gtk_tree_selection_get_selected (GtkTreeSelection  *selection,
 /**
  * gtk_tree_selection_get_selected_rows:
  * @selection: A #GtkTreeSelection.
- * @model: (out) (optional) (transfer none): A pointer to set to the #GtkTreeModel, or %NULL.
+ * @model: (out) (optional) (transfer none): A pointer to set to the #GtkTreeModel
  *
  * Creates a list of path of all selected rows. Additionally, if you are
  * planning on modifying the model after calling this function, you may
index cdcbf1b5681863d7fa0c6c12ead770776d8fc28b..dca92dc513a31061a22ab67fb541f313bde8c392 100644 (file)
@@ -174,8 +174,8 @@ gtk_tree_sortable_set_sort_column_id (GtkTreeSortable  *sortable,
  * @sortable: A #GtkTreeSortable
  * @sort_column_id: the sort column id to set the function for
  * @sort_func: The comparison function
- * @user_data: (closure): User data to pass to @sort_func, or %NULL
- * @destroy: (nullable): Destroy notifier of @user_data, or %NULL
+ * @user_data: (closure): User data to pass to @sort_func
+ * @destroy: (nullable): Destroy notifier of @user_data
  * 
  * Sets the comparison function used when sorting to be @sort_func. If the
  * current sort column id of @sortable is the same as @sort_column_id, then 
@@ -206,8 +206,8 @@ gtk_tree_sortable_set_sort_func (GtkTreeSortable        *sortable,
  * gtk_tree_sortable_set_default_sort_func:
  * @sortable: A #GtkTreeSortable
  * @sort_func: The comparison function
- * @user_data: (closure): User data to pass to @sort_func, or %NULL
- * @destroy: (nullable): Destroy notifier of @user_data, or %NULL
+ * @user_data: (closure): User data to pass to @sort_func
+ * @destroy: (nullable): Destroy notifier of @user_data
  * 
  * Sets the default comparison function used when sorting to be @sort_func.  
  * If the current sort column id of @sortable is
index 7d5b081ee1bfe7c425ae95cf4ef2a547c9ec1b95..0374f36b2d4f6689129a0bfbf51b7789ef2267ca 100644 (file)
@@ -1260,7 +1260,7 @@ gtk_tree_store_remove (GtkTreeStore *tree_store,
  * gtk_tree_store_insert:
  * @tree_store: A #GtkTreeStore
  * @iter: (out): An unset #GtkTreeIter to set to the new row
- * @parent: (nullable): A valid #GtkTreeIter, or %NULL
+ * @parent: (nullable): A valid #GtkTreeIter
  * @position: position to insert the new row, or -1 for last
  *
  * Creates a new row at @position.  If parent is non-%NULL, then the row will be
@@ -1322,8 +1322,8 @@ gtk_tree_store_insert (GtkTreeStore *tree_store,
  * gtk_tree_store_insert_before:
  * @tree_store: A #GtkTreeStore
  * @iter: (out): An unset #GtkTreeIter to set to the new row
- * @parent: (nullable): A valid #GtkTreeIter, or %NULL
- * @sibling: (nullable): A valid #GtkTreeIter, or %NULL
+ * @parent: (nullable): A valid #GtkTreeIter
+ * @sibling: (nullable): A valid #GtkTreeIter
  *
  * Inserts a new row before @sibling.  If @sibling is %NULL, then the row will
  * be appended to @parent â€™s children.  If @parent and @sibling are %NULL, then
@@ -1403,8 +1403,8 @@ gtk_tree_store_insert_before (GtkTreeStore *tree_store,
  * gtk_tree_store_insert_after:
  * @tree_store: A #GtkTreeStore
  * @iter: (out): An unset #GtkTreeIter to set to the new row
- * @parent: (nullable): A valid #GtkTreeIter, or %NULL
- * @sibling: (nullable): A valid #GtkTreeIter, or %NULL
+ * @parent: (nullable): A valid #GtkTreeIter
+ * @sibling: (nullable): A valid #GtkTreeIter
  *
  * Inserts a new row after @sibling.  If @sibling is %NULL, then the row will be
  * prepended to @parent â€™s children.  If @parent and @sibling are %NULL, then
@@ -1484,8 +1484,8 @@ gtk_tree_store_insert_after (GtkTreeStore *tree_store,
 /**
  * gtk_tree_store_insert_with_values:
  * @tree_store: A #GtkTreeStore
- * @iter: (out) (optional): An unset #GtkTreeIter to set the new row, or %NULL.
- * @parent: (nullable): A valid #GtkTreeIter, or %NULL
+ * @iter: (out) (optional): An unset #GtkTreeIter to set the new row
+ * @parent: (nullable): A valid #GtkTreeIter
  * @position: position to insert the new row, or -1 to append after existing rows
  * @...: pairs of column number and value, terminated with -1
  *
@@ -1574,8 +1574,8 @@ gtk_tree_store_insert_with_values (GtkTreeStore *tree_store,
 /**
  * gtk_tree_store_insert_with_valuesv: (rename-to gtk_tree_store_insert_with_values)
  * @tree_store: A #GtkTreeStore
- * @iter: (out) (optional): An unset #GtkTreeIter to set the new row, or %NULL.
- * @parent: (nullable): A valid #GtkTreeIter, or %NULL
+ * @iter: (out) (optional): An unset #GtkTreeIter to set the new row
+ * @parent: (nullable): A valid #GtkTreeIter
  * @position: position to insert the new row, or -1 for last
  * @columns: (array length=n_values): an array of column numbers
  * @values: (array length=n_values): an array of GValues
@@ -1651,7 +1651,7 @@ gtk_tree_store_insert_with_valuesv (GtkTreeStore *tree_store,
  * gtk_tree_store_prepend:
  * @tree_store: A #GtkTreeStore
  * @iter: (out): An unset #GtkTreeIter to set to the prepended row
- * @parent: (nullable): A valid #GtkTreeIter, or %NULL
+ * @parent: (nullable): A valid #GtkTreeIter
  * 
  * Prepends a new row to @tree_store.  If @parent is non-%NULL, then it will prepend
  * the new row before the first child of @parent, otherwise it will prepend a row
@@ -1710,7 +1710,7 @@ gtk_tree_store_prepend (GtkTreeStore *tree_store,
  * gtk_tree_store_append:
  * @tree_store: A #GtkTreeStore
  * @iter: (out): An unset #GtkTreeIter to set to the appended row
- * @parent: (nullable): A valid #GtkTreeIter, or %NULL
+ * @parent: (nullable): A valid #GtkTreeIter
  * 
  * Appends a new row to @tree_store.  If @parent is non-%NULL, then it will append the
  * new row after the last child of @parent, otherwise it will append a row to
@@ -2231,7 +2231,7 @@ gtk_tree_store_reorder_func (gconstpointer a,
 /**
  * gtk_tree_store_reorder: (skip)
  * @tree_store: A `GtkTreeStore`
- * @parent: (nullable): A `GtkTreeIter`, or %NULL
+ * @parent: (nullable): A `GtkTreeIter`
  * @new_order: (array): an array of integers mapping the new position of each child
  *   to its old position before the re-ordering,
  *   i.e. @new_order`[newpos] = oldpos`.
@@ -2785,7 +2785,7 @@ free_paths_and_out:
  * gtk_tree_store_move_before:
  * @tree_store: A #GtkTreeStore.
  * @iter: A #GtkTreeIter.
- * @position: (nullable): A #GtkTreeIter or %NULL.
+ * @position: (nullable): A #GtkTreeIter
  *
  * Moves @iter in @tree_store to the position before @position. @iter and
  * @position should be in the same level. Note that this function only
index b2742621955edf473d27829cd9f8f1ee235b8d09..2d67d3e5ad883d0d95fee9df90125ed89dccd21b 100644 (file)
@@ -10217,8 +10217,7 @@ gtk_tree_view_new_with_model (GtkTreeModel *model)
  * Returns the model the #GtkTreeView is based on.  Returns %NULL if the
  * model is unset.
  *
- * Returns: (transfer none) (nullable): A #GtkTreeModel, or %NULL if
- * none is currently being used.
+ * Returns: (transfer none) (nullable): A #GtkTreeModel
  **/
 GtkTreeModel *
 gtk_tree_view_get_model (GtkTreeView *tree_view)
@@ -10983,7 +10982,7 @@ gtk_tree_view_get_columns (GtkTreeView *tree_view)
  * gtk_tree_view_move_column_after:
  * @tree_view: A #GtkTreeView
  * @column: The #GtkTreeViewColumn to be moved.
- * @base_column: (nullable): The #GtkTreeViewColumn to be moved relative to, or %NULL.
+ * @base_column: (nullable): The #GtkTreeViewColumn to be moved relative to
  *
  * Moves @column to be after to @base_column.  If @base_column is %NULL, then
  * @column is placed in the first position.
@@ -11092,9 +11091,9 @@ gtk_tree_view_get_expander_column (GtkTreeView *tree_view)
 /**
  * gtk_tree_view_set_column_drag_function:
  * @tree_view: A #GtkTreeView.
- * @func: (nullable): A function to determine which columns are reorderable, or %NULL.
- * @user_data: (closure): User data to be passed to @func, or %NULL
- * @destroy: (nullable): Destroy notifier for @user_data, or %NULL
+ * @func: (nullable): A function to determine which columns are reorderable
+ * @user_data: (closure): User data to be passed to @func
+ * @destroy: (nullable): Destroy notifier for @user_data
  *
  * Sets a user function for determining where a column may be dropped when
  * dragged.  This function is called on every column pair in turn at the
@@ -11162,8 +11161,8 @@ gtk_tree_view_scroll_to_point (GtkTreeView *tree_view,
 /**
  * gtk_tree_view_scroll_to_cell:
  * @tree_view: A #GtkTreeView.
- * @path: (nullable): The path of the row to move to, or %NULL.
- * @column: (nullable): The #GtkTreeViewColumn to move horizontally to, or %NULL.
+ * @path: (nullable): The path of the row to move to
+ * @column: (nullable): The #GtkTreeViewColumn to move horizontally to
  * @use_align: whether to use alignment arguments, or %FALSE.
  * @row_align: The vertical alignment of the row specified by @path.
  * @col_align: The horizontal alignment of the column specified by @column.
@@ -11933,9 +11932,9 @@ gtk_tree_view_real_set_cursor (GtkTreeView     *tree_view,
  * gtk_tree_view_get_cursor:
  * @tree_view: A #GtkTreeView
  * @path: (out) (transfer full) (optional) (nullable): A pointer to be
- *   filled with the current cursor path, or %NULL
+ *   filled with the current cursor path
  * @focus_column: (out) (transfer none) (optional) (nullable): A
- *   pointer to be filled with the current focus column, or %NULL
+ *   pointer to be filled with the current focus column
  *
  * Fills in @path and @focus_column with the current path and focus column.  If
  * the cursor isn’t currently set, then *@path will be %NULL.  If no column
@@ -11972,7 +11971,7 @@ gtk_tree_view_get_cursor (GtkTreeView        *tree_view,
  * gtk_tree_view_set_cursor:
  * @tree_view: A #GtkTreeView
  * @path: A #GtkTreePath
- * @focus_column: (nullable): A #GtkTreeViewColumn, or %NULL
+ * @focus_column: (nullable): A #GtkTreeViewColumn
  * @start_editing: %TRUE if the specified cell should start being edited.
  *
  * Sets the current keyboard focus to be at @path, and selects it.  This is
@@ -12001,8 +12000,8 @@ gtk_tree_view_set_cursor (GtkTreeView       *tree_view,
  * gtk_tree_view_set_cursor_on_cell:
  * @tree_view: A #GtkTreeView
  * @path: A #GtkTreePath
- * @focus_column: (nullable): A #GtkTreeViewColumn, or %NULL
- * @focus_cell: (nullable): A #GtkCellRenderer, or %NULL
+ * @focus_column: (nullable): A #GtkTreeViewColumn
+ * @focus_cell: (nullable): A #GtkCellRenderer
  * @start_editing: %TRUE if the specified cell should start being edited.
  *
  * Sets the current keyboard focus to be at @path, and selects it.  This is
@@ -12079,13 +12078,13 @@ gtk_tree_view_set_cursor_on_cell (GtkTreeView       *tree_view,
  * @x: The x position to be identified (relative to bin_window).
  * @y: The y position to be identified (relative to bin_window).
  * @path: (out) (optional) (nullable): A pointer to a #GtkTreePath
- *   pointer to be filled in, or %NULL
+ *   pointer to be filled in
  * @column: (out) (transfer none) (optional) (nullable): A pointer to
- *   a #GtkTreeViewColumn pointer to be filled in, or %NULL
+ *   a #GtkTreeViewColumn pointer to be filled in
  * @cell_x: (out) (optional): A pointer where the X coordinate
- *   relative to the cell can be placed, or %NULL
+ *   relative to the cell can be placed
  * @cell_y: (out) (optional): A pointer where the Y coordinate
- *   relative to the cell can be placed, or %NULL
+ *   relative to the cell can be placed
  *
  * Finds the path at the point (@x, @y), relative to bin_window coordinates.
  * That is, @x and @y are relative to an events coordinates. Widget-relative
@@ -12698,13 +12697,13 @@ gtk_tree_view_get_visible_range (GtkTreeView  *tree_view,
  * @x: The x position to be identified (relative to bin_window)
  * @y: The y position to be identified (relative to bin_window)
  * @path: (out) (optional) (nullable): A pointer to a #GtkTreePath pointer to
- *   be filled in, or %NULL
+ *   be filled in
  * @column: (out) (transfer none) (optional) (nullable): A pointer to a
- *   #GtkTreeViewColumn pointer to be filled in, or %NULL
+ *   #GtkTreeViewColumn pointer to be filled in
  * @cell_x: (out) (optional): A pointer where the X coordinate relative to the
- *   cell can be placed, or %NULL
+ *   cell can be placed
  * @cell_y: (out) (optional): A pointer where the Y coordinate relative to the
- *   cell can be placed, or %NULL
+ *   cell can be placed
  *
  * Determine whether the point (@x, @y) in @tree_view is blank, that is no
  * cell content nor an expander arrow is drawn at the location. If so, the
@@ -12955,7 +12954,7 @@ gtk_tree_view_unset_rows_drag_dest (GtkTreeView *tree_view)
 /**
  * gtk_tree_view_set_drag_dest_row:
  * @tree_view: a #GtkTreeView
- * @path: (nullable): The path of the row to highlight, or %NULL
+ * @path: (nullable): The path of the row to highlight
  * @pos: Specifies whether to drop before, after or into the row
  *
  * Sets the row that is highlighted for feedback.
@@ -13021,8 +13020,8 @@ gtk_tree_view_set_drag_dest_row (GtkTreeView            *tree_view,
 /**
  * gtk_tree_view_get_drag_dest_row:
  * @tree_view: a #GtkTreeView
- * @path: (out) (optional) (nullable): Return location for the path of the highlighted row, or %NULL.
- * @pos: (out) (optional): Return location for the drop position, or %NULL
+ * @path: (out) (optional) (nullable): Return location for the path of the highlighted row
+ * @pos: (out) (optional): Return location for the drop position
  * 
  * Gets information about the row that is highlighted for feedback.
  **/
@@ -13058,7 +13057,7 @@ gtk_tree_view_get_drag_dest_row (GtkTreeView              *tree_view,
  * @drag_x: the position to determine the destination row for
  * @drag_y: the position to determine the destination row for
  * @path: (out) (optional) (nullable): Return location for the path of
- *   the highlighted row, or %NULL.
+ *   the highlighted row
  * @pos: (out) (optional): Return location for the drop position, or
  *   %NULL
  * 
@@ -13446,8 +13445,8 @@ gtk_tree_view_get_search_equal_func (GtkTreeView *tree_view)
  * gtk_tree_view_set_search_equal_func:
  * @tree_view: A #GtkTreeView
  * @search_equal_func: the compare function to use during the search
- * @search_user_data: (nullable): user data to pass to @search_equal_func, or %NULL
- * @search_destroy: (nullable): Destroy notifier for @search_user_data, or %NULL
+ * @search_user_data: (nullable): user data to pass to @search_equal_func
+ * @search_destroy: (nullable): Destroy notifier for @search_user_data
  *
  * Sets the compare function for the interactive search capabilities; note
  * that somewhat like strcmp() returning 0 for equality
@@ -13500,7 +13499,7 @@ gtk_tree_view_get_search_entry (GtkTreeView *tree_view)
 /**
  * gtk_tree_view_set_search_entry:
  * @tree_view: A #GtkTreeView
- * @entry: (nullable): the entry the interactive search code of @tree_view should use or %NULL
+ * @entry: (nullable): the entry the interactive search code of @tree_view should use
  *
  * Sets the entry which the interactive search code will use for this
  * @tree_view.  This is useful when you want to provide a search entry
@@ -14343,8 +14342,8 @@ gtk_tree_view_get_row_separator_func (GtkTreeView *tree_view)
  * gtk_tree_view_set_row_separator_func:
  * @tree_view: a #GtkTreeView
  * @func: (nullable): a #GtkTreeViewRowSeparatorFunc
- * @data: (nullable): user data to pass to @func, or %NULL
- * @destroy: (nullable): destroy notifier for @data, or %NULL
+ * @data: (nullable): user data to pass to @func
+ * @destroy: (nullable): destroy notifier for @data
  * 
  * Sets the row separator function, which is used to determine
  * whether a row should be drawn as a separator. If the row separator
@@ -14586,9 +14585,9 @@ gtk_tree_view_set_tooltip_row (GtkTreeView *tree_view,
  * gtk_tree_view_set_tooltip_cell:
  * @tree_view: a #GtkTreeView
  * @tooltip: a #GtkTooltip
- * @path: (nullable): a #GtkTreePath or %NULL
- * @column: (nullable): a #GtkTreeViewColumn or %NULL
- * @cell: (nullable): a #GtkCellRenderer or %NULL
+ * @path: (nullable): a #GtkTreePath
+ * @column: (nullable): a #GtkTreeViewColumn
+ * @cell: (nullable): a #GtkCellRenderer
  *
  * Sets the tip area of @tooltip to the area @path, @column and @cell have
  * in common.  For example if @path is %NULL and @column is set, the tip
index 64fd28f8be1bc6a4df8780cc1902649d69534382..46350b5dbbeabf468a1fb807bc5c49f98603c62e 100644 (file)
@@ -2393,7 +2393,7 @@ gtk_tree_view_column_get_clickable (GtkTreeViewColumn *tree_column)
 /**
  * gtk_tree_view_column_set_widget:
  * @tree_column: A #GtkTreeViewColumn.
- * @widget: (nullable): A child #GtkWidget, or %NULL.
+ * @widget: (nullable): A child #GtkWidget
  *
  * Sets the widget in the header to be @widget.  If widget is %NULL, then the
  * header button is set with a #GtkLabel set to the title of @tree_column.
@@ -2732,10 +2732,10 @@ gtk_tree_view_column_cell_set_cell_data (GtkTreeViewColumn *tree_column,
 /**
  * gtk_tree_view_column_cell_get_size:
  * @tree_column: A #GtkTreeViewColumn.
- * @x_offset: (out) (optional): location to return x offset of a cell relative to @cell_area, or %NULL
- * @y_offset: (out) (optional): location to return y offset of a cell relative to @cell_area, or %NULL
- * @width: (out) (optional): location to return width needed to render a cell, or %NULL
- * @height: (out) (optional): location to return height needed to render a cell, or %NULL
+ * @x_offset: (out) (optional): location to return x offset of a cell relative to @cell_area
+ * @y_offset: (out) (optional): location to return y offset of a cell relative to @cell_area
+ * @width: (out) (optional): location to return width needed to render a cell
+ * @height: (out) (optional): location to return height needed to render a cell
  * 
  * Obtains the width and height needed to render the column.  This is used
  * primarily by the #GtkTreeView.
index 86cae84d9f1d6c9d3c8c8c6034bfc51651c0f9bf..401546563248df4cd5b32c72b4bff6ea213fdc68 100644 (file)
@@ -3687,8 +3687,7 @@ gtk_widget_queue_resize (GtkWidget *widget)
  *
  * Unrealized widgets do not have a frame clock.
  *
- * Returns: (nullable) (transfer none): a `GdkFrameClock`,
- *   or %NULL if widget is unrealized
+ * Returns: (nullable) (transfer none): a `GdkFrameClock`
  */
 GdkFrameClock*
 gtk_widget_get_frame_clock (GtkWidget *widget)
@@ -6480,7 +6479,7 @@ gtk_widget_update_pango_context (GtkWidget *widget)
 /**
  * gtk_widget_set_font_options:
  * @widget: a `GtkWidget`
- * @options: (nullable): a #cairo_font_options_t, or %NULL
+ * @options: (nullable): a #cairo_font_options_t
  *   to unset any previously set default font options
  *
  * Sets the `cairo_font_options_t` used for Pango rendering
@@ -6584,7 +6583,7 @@ gtk_widget_set_font_map (GtkWidget    *widget,
  *
  * See [method@Gtk.Widget.set_font_map].
  *
- * Returns: (transfer none) (nullable): A `PangoFontMap`, or %NULL
+ * Returns: (transfer none) (nullable): A `PangoFontMap`
  */
 PangoFontMap *
 gtk_widget_get_font_map (GtkWidget *widget)
@@ -11296,7 +11295,7 @@ gtk_widget_get_template_child (GtkWidget   *widget,
  * gtk_widget_activate_action_variant: (rename-to gtk_widget_activate_action)
  * @widget: a `GtkWidget`
  * @name: the name of the action to activate
- * @args: (nullable): parameters to use, or %NULL
+ * @args: (nullable): parameters to use
  *
  * Looks up the action in the action groups associated with
  * @widget and its ancestors, and activates it.
@@ -12460,7 +12459,7 @@ gtk_widget_class_add_action (GtkWidgetClass  *widget_class,
  * gtk_widget_class_install_action:
  * @widget_class: a `GtkWidgetClass`
  * @action_name: a prefixed action name, such as "clipboard.paste"
- * @parameter_type: (nullable): the parameter type, or %NULL
+ * @parameter_type: (nullable): the parameter type
  * @activate: (scope call): callback to use when the action is activated
  *
  * This should be called at class initialization time to specify
index 0f2f4a345fa280898f29ad00c09b51cb5c4b30d3..50ea1582fb402fe0a646a2afb766234aa701c8de 100644 (file)
@@ -260,7 +260,7 @@ gtk_widget_paintable_init (GtkWidgetPaintable *self)
 
 /**
  * gtk_widget_paintable_new:
- * @widget: (nullable) (transfer none): a `GtkWidget` or %NULL
+ * @widget: (nullable) (transfer none): a `GtkWidget`
  *
  * Creates a new widget paintable observing the given widget.
  *
@@ -312,7 +312,7 @@ gtk_widget_paintable_get_widget (GtkWidgetPaintable *self)
 /**
  * gtk_widget_paintable_set_widget: (attributes org.gtk.Method.set_property=widget)
  * @self: a `GtkWidgetPaintable`
- * @widget: (nullable): the widget to observe or %NULL
+ * @widget: (nullable): the widget to observe
  *
  * Sets the widget that should be observed.
  */
index 3bb24ab30ecd15a2d1b82c1fefd32dff7637093d..4d9830d6076bee48156339a2166a01d15a7ff67c 100644 (file)
@@ -2206,9 +2206,7 @@ gtk_window_set_title (GtkWindow  *window,
  *
  * Retrieves the title of the window.
  *
- * Returns: (nullable): the title of the window, or %NULL if none has
- *   been set explicitly. The returned string is owned by the widget
- *   and must not be modified or freed.
+ * Returns: (nullable): the title of the window
  */
 const char *
 gtk_window_get_title (GtkWindow *window)
@@ -2284,7 +2282,7 @@ gtk_window_set_startup_id (GtkWindow   *window,
 /**
  * gtk_window_set_default_widget: (attributes org.gtk.Property.set=default-widget)
  * @window: a `GtkWindow`
- * @default_widget: (nullable): widget to be the default, or %NULL
+ * @default_widget: (nullable): widget to be the default
  *   to unset the default widget for the toplevel
  *
  * Sets the default widget.
@@ -2350,8 +2348,7 @@ gtk_window_set_default_widget (GtkWindow *window,
  *
  * Returns the default widget for @window.
  *
- * Returns: (nullable) (transfer none): the default widget, or %NULL
- *   if there is none.
+ * Returns: (nullable) (transfer none): the default widget
  */
 GtkWidget *
 gtk_window_get_default_widget (GtkWindow *window)
@@ -2403,8 +2400,7 @@ _gtk_window_notify_keys_changed (GtkWindow *window)
  * is not focused then `gtk_widget_has_focus (widget)` will
  * not be %TRUE for the widget.
  *
- * Returns: (nullable) (transfer none): the currently focused widget,
- *   or %NULL if there is none.
+ * Returns: (nullable) (transfer none): the currently focused widget
  */
 GtkWidget *
 gtk_window_get_focus (GtkWindow *window)
@@ -2650,7 +2646,7 @@ gtk_window_unset_transient_for (GtkWindow *window)
 /**
  * gtk_window_set_transient_for: (attributes org.gtk.Method.set_property=transient-for)
  * @window: a `GtkWindow`
- * @parent: (nullable): parent window, or %NULL
+ * @parent: (nullable): parent window
  *
  * Dialog windows should be set transient for the main application
  * window they were spawned from. This allows window managers to e.g.
@@ -2723,8 +2719,7 @@ gtk_window_set_transient_for (GtkWindow *window,
  *
  * Fetches the transient parent for this window.
  *
- * Returns: (nullable) (transfer none): the transient parent for this
- *   window, or %NULL if no transient parent has been set.
+ * Returns: (nullable) (transfer none): the transient parent for this window
  */
 GtkWindow *
 gtk_window_get_transient_for (GtkWindow *window)
@@ -2742,7 +2737,7 @@ gtk_window_get_transient_for (GtkWindow *window)
  *
  * Gets the `GtkApplication` associated with the window.
  *
- * Returns: (nullable) (transfer none): a `GtkApplication`, or %NULL
+ * Returns: (nullable) (transfer none): a `GtkApplication`
  */
 GtkApplication *
 gtk_window_get_application (GtkWindow *window)
@@ -3066,7 +3061,7 @@ out:
  * Returns the custom titlebar that has been set with
  * gtk_window_set_titlebar().
  *
- * Returns: (nullable) (transfer none): the custom titlebar, or %NULL
+ * Returns: (nullable) (transfer none): the custom titlebar
  */
 GtkWidget *
 gtk_window_get_titlebar (GtkWindow *window)
@@ -3460,8 +3455,7 @@ gtk_window_set_icon_name (GtkWindow  *window,
  *
  * Returns the name of the themed icon for the window.
  *
- * Returns: (nullable): the icon name or %NULL if the window has
- * no themed icon
+ * Returns: (nullable): the icon name
  */
 const char *
 gtk_window_get_icon_name (GtkWindow *window)
@@ -3646,8 +3640,8 @@ gtk_window_set_default_size (GtkWindow   *window,
 /**
  * gtk_window_get_default_size:
  * @window: a `GtkWindow`
- * @width: (out) (optional): location to store the default width, or %NULL
- * @height: (out) (optional): location to store the default height, or %NULL
+ * @width: (out) (optional): location to store the default width
+ * @height: (out) (optional): location to store the default height
  *
  * Gets the default size of the window.
  *
@@ -5719,7 +5713,7 @@ gtk_window_is_active (GtkWindow *window)
 
 /**
  * gtk_window_get_group:
- * @window: (nullable): a `GtkWindow`, or %NULL
+ * @window: (nullable): a `GtkWindow`
  *
  * Returns the group for @window.
  *